From: martinlanghoff Date: Wed, 27 Dec 2006 01:49:14 +0000 (+0000) Subject: redirect(): fix protocol name in redirection header() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=247035f8fc8d518fdee3ef9e43cf505d040b4272;p=moodle.git redirect(): fix protocol name in redirection header() --- diff --git a/lib/weblib.php b/lib/weblib.php index fe19c4b7fe..92b06c4a65 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4799,7 +4799,7 @@ function redirect($url, $message='', $delay=-1) { $delay = 0; //try header redirection first - @header('HTTP/1.x 303 See Other'); //302 might not work for POST requests, 303 is ignored by obsolete clients + @header($_SERVER['SERVER_PROTOCOL'] . ' 303 See Other'); //302 might not work for POST requests, 303 is ignored by obsolete clients @header('Location: '.$url); //another way for older browsers and already sent headers (eg trailing whitespace in config.php) echo '';