also allow "+" in bbcode urls, thanks to leif from the forums
authorgarvinhicking <garvinhicking>
Sat, 29 Apr 2006 15:39:45 +0000 (15:39 +0000)
committergarvinhicking <garvinhicking>
Sat, 29 Apr 2006 15:39:45 +0000 (15:39 +0000)
plugins/serendipity_event_bbcode/serendipity_event_bbcode.php

index 8bbca9512b2fc689df2a81c0057bab6fa76ec8dc..78933ad9a0dbc437d43b8757de721cba8169f070 100644 (file)
@@ -149,7 +149,7 @@ class serendipity_event_bbcode extends serendipity_event
         static $pattern_mail  = '([\.\-\+~@_0-9a-z]+?)';
 
         // Only allow strings occuring in URLs: &;?:.-_@/, 0-9, a-z
-        static $pattern_url   = '([@!=~\?:&;0-9a-z#\.\-_\/,%]+?)';
+        static $pattern_url   = '([@!=~\?:&;0-9a-z#\.\-_\/,%\+]+?)';
 
         // Disallow possibly evil HTML characters which may lead to Javascript XSS: '"();
         static $pattern_query = '([^"\'\(\);]+?)';