From 4569581d73ac103577da63ae5888be6ae947f1f9 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Thu, 30 Apr 2009 23:52:32 +0000 Subject: [PATCH] Exclamation mark is a valid and safe character in a URI. props hakre. fixes #8904 git-svn-id: https://develop.svn.wordpress.org/trunk@11147 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 96241273a7..67c3a9d9d9 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -876,7 +876,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