]> git.donarmstrong.com Git - roundcube.git/blob - debian/patches/dont-limit-email-local-part.patch
Imported Debian patch 0.3.1-3
[roundcube.git] / debian / patches / dont-limit-email-local-part.patch
1 To fix #568360 and #568537, don't limit local part size.
2 --- roundcube-0.3.1/program/include/main.inc~   2009-10-31 14:44:19.751802878 +0100
3 +++ roundcube-0.3.1/program/include/main.inc    2010-02-05 19:46:12.000000000 +0100
4 @@ -1427,7 +1427,7 @@
5      return false;
6  
7    // Check that there's one @ symbol, and that the lengths are right
8 -  if (!preg_match('/^([^@]{1,64})@([^@]{1,255})$/', $email, $email_array))
9 +  if (!preg_match('/^([^@]+)@([^@]{1,255})$/', $email, $email_array))
10      return false;
11  
12    // Check local part