diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 02377203a2..639230f702 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1190,7 +1190,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 diff --git a/wp-includes/version.php b/wp-includes/version.php index ccbe4ebff3..54934cd9a9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-beta2-30682'; +$wp_version = '4.1-beta2-30683'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.