allow email address with + (RFC compliant) (patch)

Bram Dumolin

Joined: 2006-12-25
Posts: 1
Posted: Mon, 2006-12-25 15:15

--- GalleryUtilities.class.org 2006-12-25 15:02:24.000000000 +0000
+++ GalleryUtilities.class 2006-12-25 15:03:27.000000000 +0000
@@ -1314,7 +1314,7 @@
* @return boolean true if valid format
*/
function isValidEmailString($email) {
- return (preg_match('/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9_.-]+\.[a-zA-Z]{2,4}$/', $email) > 0);
+ return (preg_match('/^[\+a-zA-Z0-9_.-]+@[a-zA-Z0-9_.-]+\.[a-zA-Z]{2,4}$/', $email) > 0);
}

/**

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2006-12-25 16:10

Thanks for reporting this.
This has already been changed a while ago, nightly snapshots have this patch already.