Changeset aba0927 in github


Ignore:
Timestamp:
Mar 3, 2010 7:12:31 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
b975da2
Parents:
7910c0f
Message:
  • Fix long e-mail addresses validation (#1486453)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r7910c0f raba0927  
    22=========================== 
    33 
     4- Fix long e-mail addresses validation (#1486453) 
    45- Remember search modifiers in user prefs (#1486146) 
    56- Added force_7bit option to force MIME encoding of plain/text messages (#1486510) 
  • program/include/main.inc

    r929a508 raba0927  
    15121512    return false; 
    15131513 
    1514   // Check that there's one @ symbol, and that the lengths are right 
    1515   if (!preg_match('/^([^@]{1,64})@([^@]{1,255})$/', $email, $email_array)) 
     1514  // Check for length limit specified by RFC 5321 (#1486453) 
     1515  if (strlen($email) > 254)  
     1516    return false; 
     1517 
     1518  // Check that there's one @ symbol 
     1519  if (!preg_match('/^([^@]+)@([^@]+)$/', $email, $email_array)) 
    15161520    return false; 
    15171521 
Note: See TracChangeset for help on using the changeset viewer.