Changeset 3033 in subversion


Ignore:
Timestamp:
Oct 12, 2009 5:44:04 AM (4 years ago)
Author:
alec
Message:
  • Fix importing/sending to email address with whitespace (#1486214)
Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r3030 r3033  
    22=========================== 
    33 
    4 - Added XIMSS (Communigate) driver for Password plugin 
     4- Fix importing/sending to email address with whitespace (#1486214) 
     5- Added XIMSS (CommuniGate) driver for Password plugin 
    56- Fix newly attached files are not saved in drafts w/o editing any text (#1486202) 
    67- Added attachment upload indicator with parallel upload (#1486058) 
  • trunk/roundcubemail/program/include/main.inc

    r3003 r3033  
    947947 
    948948/** 
    949  * Compose a valid representaion of name and e-mail address 
     949 * Compose a valid representation of name and e-mail address 
    950950 * 
    951951 * @param string E-mail address 
     
    958958    { 
    959959    // Special chars as defined by RFC 822 need to in quoted string (or escaped). 
    960     return sprintf('%s <%s>', preg_match('/[\(\)\<\>\\\.\[\]@,;:"]/', $name) ? '"'.addcslashes($name, '"').'"' : $name, $email); 
     960    return sprintf('%s <%s>', preg_match('/[\(\)\<\>\\\.\[\]@,;:"]/', $name) ? '"'.addcslashes($name, '"').'"' : $name, trim($email)); 
    961961    } 
    962962  else 
    963     return $email; 
     963    return trim($email); 
    964964  } 
    965965 
  • trunk/roundcubemail/program/include/rcube_vcard.php

    r2771 r3033  
    270270        foreach($regs2[1] as $attrid => $attr) { 
    271271          if ((list($key, $value) = explode('=', $attr)) && $value) { 
     272            $value = trim($value); 
    272273            if ($key == 'ENCODING') { 
    273274              // add next line(s) to value string if QP line end detected 
Note: See TracChangeset for help on using the changeset viewer.