From 192960fcb58dcb981250871667e112e22958a484 Mon Sep 17 00:00:00 2001 From: henoheno Date: Sat, 16 Jun 2007 12:39:39 +0900 Subject: [PATCH] * Added spam_uri_removing_hocus_pocus(). * strings(): Multibyte-aware. Do one string well (disable for array()) --- spam/spam.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spam/spam.php b/spam/spam.php index 106ab90..5681b51 100644 --- a/spam/spam.php +++ b/spam/spam.php @@ -1,5 +1,5 @@ []:') between spaces + $binary = preg_replace('/[ \t][\w.,()\ \t]+[ \t]/', ' ', $binary); return $binary; } @@ -486,6 +486,7 @@ function spam_uri_pickup_preprocess($string = '', $method = array()) if (! is_string($string)) return ''; $string = spam_uri_removing_hocus_pocus(rawurldecode($string), $method); + //var_dump(htmlspecialchars($string)); // Domain exposure (simple) // http://victim.example.org/nasty.example.org/path#frag @@ -2073,7 +2074,7 @@ function pkwk_spamfilter($action, $page, $target = array('title' => ''), $method if (empty($progress['is_spam'])) { spam_dispose(); } else { - $target = string($target, 0); // Removing "\0" etc + $target = strings($target, 0); // Removing "\0" etc pkwk_spamnotify($action, $page, $target, $progress, $method); spam_exit($exitmode, $progress); } -- 2.11.0