Ticket #5668: allow-parens-in-url.diff
File allow-parens-in-url.diff, 521 bytes (added by , 17 years ago) |
---|
-
wp-includes/formatting.php
1111 1111 $original_url = $url; 1112 1112 1113 1113 if ('' == $url) return $url; 1114 $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@ ]|i', '', $url);1114 $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@()]|i', '', $url); 1115 1115 $strip = array('%0d', '%0a'); 1116 1116 $url = str_replace($strip, '', $url); 1117 1117 $url = str_replace(';//', '://', $url);