Don't allow newlines in redirects

git-svn-id: http://svn.automattic.com/wordpress/trunk@3060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-11-13 04:38:56 +00:00
parent 5fbc876db8
commit fe1e8af589
1 changed files with 2 additions and 0 deletions

View File

@ -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