Package: gallery2 Severity: minor Tags: patch The function that checks whether an email address is valid erroneously rejects an email address with '+'. The attached patch fixes the problem.
-- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.21-1-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash
diff -Nur gallery2-2.1.2-debian/modules/core/classes/GalleryUtilities.class gallery2-2.1.2/modules/core/classes/GalleryUtilities.class --- gallery2-2.1.2-debian/modules/core/classes/GalleryUtilities.class 2006-04-28 13:19:56.000000000 -0600 +++ gallery2-2.1.2/modules/core/classes/GalleryUtilities.class 2007-06-18 10:45:53.000000000 -0600 @@ -1314,7 +1314,7 @@ * @return boolean true if valid format */ function isValidEmailString($email) { - return (preg_match('/[EMAIL PROTECTED],4}$/', $email) > 0); + return (preg_match('/[EMAIL PROTECTED],4}$/', $email) > 0); } /**