[geeklog-hg] geeklog: Fixed SPAMX IP black list problems with certain IPs (bu...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Jan 4 05:57:10 EST 2014
changeset 9380:d3d9713674c4
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/d3d9713674c4
user: Kenji ITO <mystralkk at gmail.com>
date: Sat Jan 04 19:55:59 2014 +0900
description:
Fixed SPAMX IP black list problems with certain IPs (bug #0001587)
diffstat:
plugins/spamx/IP.Examine.class.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 9a121f0bcb36 -r d3d9713674c4 plugins/spamx/IP.Examine.class.php
--- a/plugins/spamx/IP.Examine.class.php Sat Jan 04 18:21:52 2014 +0900
+++ b/plugins/spamx/IP.Examine.class.php Sat Jan 04 19:55:59 2014 +0900
@@ -190,7 +190,7 @@
} elseif (strpos($val, '-') !== false) {
$matches = $this->_matchRange($ip, $val);
} else {
- $matches = (preg_match("#$val#i", $ip) == 0 ? false : true);
+ $matches = preg_match("#^{$val}$#i", $ip);
}
if ($matches) {
More information about the geeklog-cvs
mailing list