Allow % so entities such as slashes don't break.
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
443cfab1a3
commit
00e5ef9609
|
@ -261,7 +261,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");
|
||||
|
|
Loading…
Reference in New Issue