From 61881b5111f0b28157d599fa85bf7a10e4f7e6bd Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 14 Jan 2008 20:38:43 +0000 Subject: [PATCH] Allow parens in urls. Props nbachiyski. fixes #5668 git-svn-id: http://svn.automattic.com/wordpress/trunk@6613 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 4ddad797a..c76396f74 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -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);