Allow % so entities such as slashes don't break.

git-svn-id: https://develop.svn.wordpress.org/trunk@3939 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-06-30 00:43:23 +00:00
parent 81b4acdfd4
commit 8b1e622739
1 changed files with 4 additions and 1 deletions

View File

@ -260,7 +260,10 @@ if ( !function_exists('wp_redirect') ) :
function wp_redirect($location) {
global $is_IIS;
$location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $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");