OSDN Git Service

Avoid '\'
authorhenoheno <henoheno>
Sat, 30 Dec 2006 08:11:37 +0000 (17:11 +0900)
committerhenoheno <henoheno>
Sat, 30 Dec 2006 08:11:37 +0000 (17:11 +0900)
spam.php
spam/spam.php

index f350869..0bf9f46 100644 (file)
--- a/spam.php
+++ b/spam.php
@@ -1,5 +1,5 @@
 <?php
-// $Id: spam.php,v 1.84 2006/12/30 08:01:42 henoheno Exp $
+// $Id: spam.php,v 1.85 2006/12/30 08:11:37 henoheno Exp $
 // Copyright (C) 2006 PukiWiki Developers Team
 // License: GPL v2 or (at your option) any later version
 
@@ -33,7 +33,7 @@ function uri_pickup($string = '', $normalize = TRUE,
                        // 3: Host
                        '\[[0-9a-f:.]+\]' . '|' .                               // IPv6([colon-hex and dot]): RFC2732
                        '(?:[0-9]{1-3}\.){3}[0-9]{1-3}' . '|' . // IPv4(dot-decimal): 001.22.3.44
-                       '[^\s<>"\'\[\]:/\#?]+' .                                // FQDN: foo.example.org
+                       '[^\s<>"\'\[\]:/\#?\\\]+' .                     // FQDN: foo.example.org
                ')' .
                '(?::([0-9]*))?' .                                      // 4: Port
                '((?:/+[^\s<>"\'\[\]/\#]+)*/+)?' .      // 5: Directory path or path-info
index f350869..0bf9f46 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-// $Id: spam.php,v 1.84 2006/12/30 08:01:42 henoheno Exp $
+// $Id: spam.php,v 1.85 2006/12/30 08:11:37 henoheno Exp $
 // Copyright (C) 2006 PukiWiki Developers Team
 // License: GPL v2 or (at your option) any later version
 
@@ -33,7 +33,7 @@ function uri_pickup($string = '', $normalize = TRUE,
                        // 3: Host
                        '\[[0-9a-f:.]+\]' . '|' .                               // IPv6([colon-hex and dot]): RFC2732
                        '(?:[0-9]{1-3}\.){3}[0-9]{1-3}' . '|' . // IPv4(dot-decimal): 001.22.3.44
-                       '[^\s<>"\'\[\]:/\#?]+' .                                // FQDN: foo.example.org
+                       '[^\s<>"\'\[\]:/\#?\\\]+' .                     // FQDN: foo.example.org
                ')' .
                '(?::([0-9]*))?' .                                      // 4: Port
                '((?:/+[^\s<>"\'\[\]/\#]+)*/+)?' .      // 5: Directory path or path-info