From bacbca924fa6d0c7cf1329d376942767b9c09d6f Mon Sep 17 00:00:00 2001 From: markjaquith 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: http://svn.automattic.com/wordpress/trunk@5993 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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