From 2cbc2f0e87f970af799cde4f336b578cdb971845 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Thu, 30 Aug 2007 18:13:48 +0000 Subject: [PATCH] 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 --- wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index e2c6a59c2b..2cfd23193f 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -398,7 +398,7 @@ function wp_redirect($location, $status = 302) { if ( !$location ) // allows the wp_redirect filter to cancel a redirect return false; - $location = preg_replace('|[^a-z0-9-~\+_\.\?#=&;,/:%]|i', '', $location); + $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%]|i', '', $location); $location = wp_kses_no_null($location); // remove %0d and %0a from location