MSN Spaces seems to like exclamation points in their URLs, they must be pandering to Yahoo! ;)

git-svn-id: https://develop.svn.wordpress.org/trunk@4593 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2006-12-03 21:55:42 +00:00
parent 1b25902ffa
commit 546425227b
1 changed files with 1 additions and 1 deletions

View File

@ -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);