]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Return redirect code correctly as HTTP status, not a header. Fixes ticket #1371
authorCiaranG <ciaran@ciarang.com>
Wed, 1 Apr 2009 17:11:02 +0000 (18:11 +0100)
committerCiaranG <ciaran@ciarang.com>
Wed, 1 Apr 2009 17:11:02 +0000 (18:11 +0100)
lib/util.php

index fdcae0aca0e457fd230a9e5dd7adfd8c33394b51..26f1ff179fd7630cdfdecaf0e667ea5cf202d6d0 100644 (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();