summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiaranG <ciaran@ciarang.com>2009-04-01 18:11:02 +0100
committerEvan Prodromou <evan@controlyourself.ca>2009-04-01 14:49:39 -0400
commite3d5f965ae3241a9786cdcc3783af67029af57e9 (patch)
tree6396eac0a408521ffea2b900accf88738ac5a2df
parent783d292739886811ab41215c614940d24214358f (diff)
Return redirect code correctly as HTTP status, not a header. Fixes ticket #1371
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 98a3ae844..f08e70754 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();