OSDN Git Service

At the least, FQDN or IP must have one dot (not site:http://)
authorhenoheno <henoheno>
Wed, 3 Jan 2007 13:54:39 +0000 (22:54 +0900)
committerhenoheno <henoheno>
Wed, 3 Jan 2007 13:54:39 +0000 (22:54 +0900)
spam.php
spam/spam.php

index a2c5a96..a7a57de 100644 (file)
--- a/spam.php
+++ b/spam.php
@@ -1,8 +1,7 @@
 <?php
-// $Id: spam.php,v 1.99 2007/01/03 13:31:20 henoheno Exp $
+// $Id: spam.php,v 1.100 2007/01/03 13:54:39 henoheno Exp $
 // Copyright (C) 2006-2007 PukiWiki Developers Team
 // License: GPL v2 or (at your option) any later version
-
 // Functions for Concept-work of spam-uri metrics
 // (PHP 4 >= 4.3.0): preg_match_all(PREG_OFFSET_CAPTURE): $method['uri_XXX'] related feature
 
@@ -350,7 +349,7 @@ function spam_uri_pickup_preprocess($string = '')
                        // Something Google: http://www.google.com/supported_domains
                        '#(http)://([a-z0-9.]+\.google\.[a-z]{2,3}(?:\.[a-z]{2})?)/' .
                        '([a-z0-9?=&.%_+-]+)' .         // ?query=foo+
-                       '\bsite:([a-z0-9.%_-]+)' .      // site:nasty.example.com
+                       '\bsite:([a-z0-9.%_-]+\.[a-z0-9.%_-]+)' .       // site:nasty.example.com
                        //'()' .        // Preserve or remove?
                        '#i',
                ),
index a2c5a96..a7a57de 100644 (file)
@@ -1,8 +1,7 @@
 <?php
-// $Id: spam.php,v 1.99 2007/01/03 13:31:20 henoheno Exp $
+// $Id: spam.php,v 1.100 2007/01/03 13:54:39 henoheno Exp $
 // Copyright (C) 2006-2007 PukiWiki Developers Team
 // License: GPL v2 or (at your option) any later version
-
 // Functions for Concept-work of spam-uri metrics
 // (PHP 4 >= 4.3.0): preg_match_all(PREG_OFFSET_CAPTURE): $method['uri_XXX'] related feature
 
@@ -350,7 +349,7 @@ function spam_uri_pickup_preprocess($string = '')
                        // Something Google: http://www.google.com/supported_domains
                        '#(http)://([a-z0-9.]+\.google\.[a-z]{2,3}(?:\.[a-z]{2})?)/' .
                        '([a-z0-9?=&.%_+-]+)' .         // ?query=foo+
-                       '\bsite:([a-z0-9.%_-]+)' .      // site:nasty.example.com
+                       '\bsite:([a-z0-9.%_-]+\.[a-z0-9.%_-]+)' .       // site:nasty.example.com
                        //'()' .        // Preserve or remove?
                        '#i',
                ),