diff options
author | CiaranG <ciaran@ciarang.com> | 2009-04-01 18:11:02 +0100 |
---|---|---|
committer | CiaranG <ciaran@ciarang.com> | 2009-04-01 18:11:02 +0100 |
commit | e7381493ad036e686f82f432066f00ff911ad5d5 (patch) | |
tree | 93254960e840743db9dc67f4d91d4900138c2c78 | |
parent | b112b326402200c164fc5c9678d4aff656f7afd4 (diff) |
Return redirect code correctly as HTTP status, not a header. Fixes ticket #1371
-rw-r--r-- | lib/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index fdcae0aca..26f1ff179 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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(); |