From 42ae25cb483cc44a4ce03c7419b83d93e5277b61 Mon Sep 17 00:00:00 2001 From: markjaquith 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: http://svn.automattic.com/wordpress/trunk@11147 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 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