From a598d7e230c10703e989a1fa9b2e67a999d7eabc Mon Sep 17 00:00:00 2001 From: henoheno Date: Sat, 28 Apr 2007 15:33:30 +0900 Subject: [PATCH] s = PCRE_DOTALL --- spam/spam.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spam/spam.php b/spam/spam.php index 03be77c..59b1989 100644 --- a/spam/spam.php +++ b/spam/spam.php @@ -1,5 +1,5 @@ visit http://nasty.example.com/ // [OK] discount foobar // [NG] visit http://ng.example.com _not_ended_ - $regex = '#]*\bhref\b[^>]*>.*?]*(>)#i'; + $regex = '#]*\bhref\b[^>]*>.*?]*(>)#is'; if (isset($method['area_anchor'])) { $areas = array(); $count = isset($method['asap']) ? @@ -250,7 +250,7 @@ function area_pickup($string = '', $method = array()) // [OK] [link]http://nasty.example.com/[/link] // [OK] [url=http://nasty.example.com]visit http://nasty.example.com/[/url] // [OK] [link http://nasty.example.com/]buy something[/link] - $regex = '#\[(url|link)\b[^\]]*\].*?\[/\1\b[^\]]*(\])#i'; + $regex = '#\[(url|link)\b[^\]]*\].*?\[/\1\b[^\]]*(\])#is'; if (isset($method['area_bbcode'])) { $areas = array(); $count = isset($method['asap']) ? -- 2.11.0