diff options
Diffstat (limited to 'extensions/FunnyDot.php')
-rw-r--r-- | extensions/FunnyDot.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/extensions/FunnyDot.php b/extensions/FunnyDot.php index d9d932ae..7cd00007 100644 --- a/extensions/FunnyDot.php +++ b/extensions/FunnyDot.php @@ -6,17 +6,11 @@ $wgExtensionCredits['other'][] = array( 'name' => 'FunnyDot', 'description' => 'Schutz vor Spam-Bots', 'author' => 'Pierre Schmitz', - 'url' => 'http://www.laber-land.de', + 'url' => 'http://www.archlinux.de', ); class FunnyDot { -private static function hexVal($in) - { - $result = preg_replace('/[^0-9a-fA-F]/', '', $in); - return (empty($result) ? 0 : $result); - } - public static function checkAntiSpamHash() { global $wgAntiSpamHash, $wgAntiSpamTimeout, $wgAntiSpamWait; @@ -26,7 +20,7 @@ public static function checkAntiSpamHash() if (!empty($_COOKIE['AntiSpamTime']) && !empty($_COOKIE['AntiSpamHash'])) { $time = intval($_COOKIE['AntiSpamTime']); - $hash = self::hexVal($_COOKIE['AntiSpamHash']); + $hash = self::$_COOKIE['AntiSpamHash']; if ($hash != sha1($time.$wgAntiSpamHash)) { |