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