diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-30 08:36:17 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-30 08:36:17 +0000 |
commit | 3ee2661aeb601a93b99fbbef43d10b802788c3bc (patch) | |
tree | c053c89fcb9099ccb6aa9d15aa4efc9aa0a664ce /wp-includes/pluggable.php | |
parent | 91046d263bd61bc63c06ba6b5930042e01a79bfb (diff) | |
download | wordpress-mu-3ee2661aeb601a93b99fbbef43d10b802788c3bc.tar.gz wordpress-mu-3ee2661aeb601a93b99fbbef43d10b802788c3bc.tar.xz wordpress-mu-3ee2661aeb601a93b99fbbef43d10b802788c3bc.zip |
WP Merge (kill the foo!)
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@618 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/pluggable.php')
-rw-r--r-- | wp-includes/pluggable.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 9c2440f..ab054bf 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -266,7 +266,10 @@ if ( !function_exists('wp_redirect') ) : function wp_redirect($location) { global $is_IIS; - $location = str_replace( array("\n", "\r"), '', $location); + $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%]|i', '', $location); + + $strip = array('%0d', '%0a'); + $location = str_replace($strip, '', $location); if ($is_IIS) header("Refresh: 0;url=$location"); |