From 177fe2119405c4cc19033a6909ae972d63390cd0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 1 Jul 2014 15:56:15 +0000 Subject: [PATCH] Asterisk is an allowed character in a URI and should not be stripped out by wp_sanitize_redirect(). fixes #28362. Built from https://develop.svn.wordpress.org/trunk@28939 git-svn-id: http://core.svn.wordpress.org/trunk@28737 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 2715a32be5..f6c4314b86 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1160,7 +1160,7 @@ if ( !function_exists('wp_sanitize_redirect') ) : * @return string redirect-sanitized URL **/ function wp_sanitize_redirect($location) { - $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