Roll back [5986], [5988], [5989]. We are in a char class, so no escaping needed. Props mdawaffe. see #4873

git-svn-id: https://develop.svn.wordpress.org/trunk@5993 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-08-30 18:13:48 +00:00
parent 00f5e9555d
commit 2cbc2f0e87
1 changed files with 1 additions and 1 deletions

View File

@ -398,7 +398,7 @@ function wp_redirect($location, $status = 302) {
if ( !$location ) // allows the wp_redirect filter to cancel a redirect if ( !$location ) // allows the wp_redirect filter to cancel a redirect
return false; return false;
$location = preg_replace('|[^a-z0-9-~\+_\.\?#=&;,/:%]|i', '', $location); $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%]|i', '', $location);
$location = wp_kses_no_null($location); $location = wp_kses_no_null($location);
// remove %0d and %0a from location // remove %0d and %0a from location