From 4e52293cc99e376c2a0e71e5de1054ca63a92a12 Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 3 Dec 2006 21:55:42 +0000 Subject: [PATCH] MSN Spaces seems to like exclamation points in their URLs, they must be pandering to Yahoo! ;) git-svn-id: http://svn.automattic.com/wordpress/trunk@4593 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 5faac073da..cb3ddacaf8 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -1057,7 +1057,7 @@ function wp_richedit_pre($text) { function clean_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);