Return redirect code correctly as HTTP status, not a header. Fixes ticket #1371
This commit is contained in:
parent
b112b32640
commit
e7381493ad
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user