From bfe4032208f4a0e526f52d0f215c1ae92124693c Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 20 Apr 2009 22:02:17 +0000 Subject: [PATCH] Allow pipes through clean_url(). Props scohoust. fixes #7145 git-svn-id: http://svn.automattic.com/wordpress/trunk@11023 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 efbe54933c..0d247afd0a 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -1980,7 +1980,7 @@ function clean_url( $url, $protocols = null, $context = 'display' ) { $original_url = $url; if ('' == $url) return $url; - $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@$*\'()\\x80-\\xff]|i', '', $url); + $url = preg_replace('|[^a-z0-9-~+_.?#=!&;,/:%@$\|*\'()\\x80-\\xff]|i', '', $url); $strip = array('%0d', '%0a'); $url = str_replace($strip, '', $url); $url = str_replace(';//', '://', $url);