Return redirect code correctly as HTTP status, not a header. Fixes ticket #1371

This commit is contained in:
CiaranG 2009-04-01 18:11:02 +01:00
parent b112b32640
commit e7381493ad
1 changed files with 1 additions and 1 deletions

View File

@ -850,7 +850,7 @@ function common_redirect($url, $code=307)
303 => "See Other",
307 => "Temporary Redirect");
header("Status: ${code} $status[$code]");
header('HTTP/1.1 '.$code.' '.$status[$code]);
header("Location: $url");
$xo = new XMLOutputter();