cvs: php-master-web /entry user-note.php
| From: | Nuno Lopes | Date: | Thu, 04 May 2006 17:00:24 +0000 |
| Subject: | cvs: php-master-web /entry user-note.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-31369@lists.php.net to get a copy of this message | ||
nlopess Thu May 4 17:00:24 2006 UTC
Modified files:
/php-master-web/entry user-note.php
Log:
also pass the remote user ip through is_spammer() - bug #37310
http://cvs.php.net/viewcvs.cgi/php-master-web/entry/user-note.php?r1=1.51&r2=1.52&diff_format=u
Index: php-master-web/entry/user-note.php
diff -u php-master-web/entry/user-note.php:1.51 php-master-web/entry/user-note.php:1.52
--- php-master-web/entry/user-note.php:1.51 Wed Mar 22 19:20:20 2006
+++ php-master-web/entry/user-note.php Thu May 4 17:00:24 2006
@@ -50,7 +50,7 @@
die("missing some parameters.");
// check if the IP is blacklisted
-if (is_spammer($_SERVER['REMOTE_ADDR']) || is_spammer($redirip)) {
+if (is_spammer($_SERVER['REMOTE_ADDR']) || is_spammer($ip) || is_spammer($redirip)) {
die ('[SPAMMER]');
}