Allow parens in urls. Props nbachiyski. fixes #5668

git-svn-id: https://develop.svn.wordpress.org/trunk@6613 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-01-14 20:38:43 +00:00
parent a2695efc33
commit 81eba533de
1 changed files with 1 additions and 1 deletions

View File

@ -1111,7 +1111,7 @@ function clean_url( $url, $protocols = null, $context = 'display' ) {
$original_url = $url;
if ('' == $url) return $url;
$url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@]|i', '', $url);
$url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@()]|i', '', $url);
$strip = array('%0d', '%0a');
$url = str_replace($strip, '', $url);
$url = str_replace(';//', '://', $url);