OSDN Git Service

Some spam aims spaces for google
authorhenoheno <henoheno>
Thu, 11 Jan 2007 15:51:12 +0000 (00:51 +0900)
committerhenoheno <henoheno>
Thu, 11 Jan 2007 15:51:12 +0000 (00:51 +0900)
spam.php
spam/spam.php

index 0f15961..81a7943 100644 (file)
--- a/spam.php
+++ b/spam.php
@@ -1,5 +1,5 @@
 <?php
-// $Id: spam.php,v 1.105 2007/01/08 02:25:32 henoheno Exp $
+// $Id: spam.php,v 1.106 2007/01/11 15:51:12 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
@@ -348,7 +348,7 @@ function spam_uri_pickup_preprocess($string = '')
                array(
                        // 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+
+                       '([ a-z0-9?=&.%_+-]+)' .                                        // ?query=foo+bar hoge
                        '\bsite:([a-z0-9.%_-]+\.[a-z0-9.%_-]+)' .       // site:nasty.example.com
                        //'()' .        // Preserve or remove?
                        '#i',
index 0f15961..81a7943 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-// $Id: spam.php,v 1.105 2007/01/08 02:25:32 henoheno Exp $
+// $Id: spam.php,v 1.106 2007/01/11 15:51:12 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
@@ -348,7 +348,7 @@ function spam_uri_pickup_preprocess($string = '')
                array(
                        // 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+
+                       '([ a-z0-9?=&.%_+-]+)' .                                        // ?query=foo+bar hoge
                        '\bsite:([a-z0-9.%_-]+\.[a-z0-9.%_-]+)' .       // site:nasty.example.com
                        //'()' .        // Preserve or remove?
                        '#i',