Don't allow newlines in redirects
git-svn-id: https://develop.svn.wordpress.org/trunk@3060 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
92390480d7
commit
5881c769b4
@ -192,6 +192,8 @@ if ( !function_exists('wp_redirect') ) :
|
||||
function wp_redirect($location) {
|
||||
global $is_IIS;
|
||||
|
||||
$location = str_replace( array("\n", "\r"), '', $location);
|
||||
|
||||
if ($is_IIS)
|
||||
header("Refresh: 0;url=$location");
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user