Changeset 2185899 in github


Ignore:
Timestamp:
Aug 9, 2011 5:53:37 AM (22 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
8dd172a
Parents:
6d0ada3
Message:
  • Fix handling of email addresses with quoted local part (#1487939)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_imap.php

    r6d0ada3 r2185899  
    47734773                $name    = trim($m[1]); 
    47744774            } 
    4775             else if (preg_match('/^(\S+@\S+)$/', $val, $m)) { 
     4775            else if (preg_match('/^('.$email_rx.')$/', $val, $m)) { 
    47764776                $address = $m[1]; 
    47774777                $name    = ''; 
  • tests/maildecode.php

    r6d0ada3 r2185899  
    4747        // 1487939 
    4848        19 => 'Test <"test test"@domain.tld>', 
     49        20 => '<"test test"@domain.tld>', 
     50        21 => '"test test"@domain.tld', 
    4951    ); 
    5052 
     
    7072        18 => array(1, 'Test,Test', 'test@domain.tld'), 
    7173        19 => array(1, 'Test', '"test test"@domain.tld'), 
     74        20 => array(1, '', '"test test"@domain.tld'), 
     75        21 => array(1, '', '"test test"@domain.tld'), 
    7276    ); 
    7377 
Note: See TracChangeset for help on using the changeset viewer.