Changeset aba0927 in github
- Timestamp:
- Mar 3, 2010 7:12:31 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- b975da2
- Parents:
- 7910c0f
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/main.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r7910c0f raba0927 2 2 =========================== 3 3 4 - Fix long e-mail addresses validation (#1486453) 4 5 - Remember search modifiers in user prefs (#1486146) 5 6 - Added force_7bit option to force MIME encoding of plain/text messages (#1486510) -
program/include/main.inc
r929a508 raba0927 1512 1512 return false; 1513 1513 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)) 1516 1520 return false; 1517 1521
Note: See TracChangeset
for help on using the changeset viewer.
