From: CiaranG Date: Wed, 1 Apr 2009 17:11:02 +0000 (+0100) Subject: Return redirect code correctly as HTTP status, not a header. Fixes ticket #1371 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e3d5f965ae3241a9786cdcc3783af67029af57e9;p=quix0rs-gnu-social.git Return redirect code correctly as HTTP status, not a header. Fixes ticket #1371 --- diff --git a/lib/util.php b/lib/util.php index 98a3ae8448..f08e707549 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();