From fbca14b45879ff24365be9bcebbbdb3ffa1fc9dd Mon Sep 17 00:00:00 2001 From: markjaquith Date: Thu, 30 Aug 2007 17:43:27 +0000 Subject: [PATCH] Escape special chars in regex. Props eightize and Otto42. fixes #4873 for 2.0.12 git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@5989 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/pluggable-functions.php b/wp-includes/pluggable-functions.php index be457f0f8a..24dee30b1e 100644 --- a/wp-includes/pluggable-functions.php +++ b/wp-includes/pluggable-functions.php @@ -259,7 +259,7 @@ if ( !function_exists('wp_redirect') ) : function wp_redirect($location, $status = 302) { 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);