[geeklog-hg] geeklog: Fixed a bug where Automatic Disallow Domains do not str...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Wed Jan 8 06:16:25 EST 2014
changeset 9395:c238eca1ebac
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/c238eca1ebac
user: Kenji ITO <mystralkk at gmail.com>
date: Wed Jan 08 15:23:21 2014 +0900
description:
Fixed a bug where Automatic Disallow Domains do not strip white space (bug #0001701)
diffstat:
system/lib-user.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r db9c1864ecda -r c238eca1ebac system/lib-user.php
--- a/system/lib-user.php Wed Jan 08 13:17:08 2014 +0900
+++ b/system/lib-user.php Wed Jan 08 15:23:21 2014 +0900
@@ -594,7 +594,9 @@
$email_domain = substr ($email, strpos ($email, '@') + 1);
foreach ($domains as $domain) {
- if (preg_match ("#$domain#i", $email_domain)) {
+ $domain = trim($domain); // To fix bug #0001701
+
+ if (preg_match("#{$domain}#i", $email_domain)) {
$match_found = true;
break;
}
More information about the geeklog-cvs
mailing list