Forráskód Böngészése

Location: header automatically adds 302 Status header. If extra Status header
is used, PHP bug (#36705) causes errors in fastcgi setups. RFC 2616 recommends
use of 302 headers for agents that don't support HTTP 1.1.

Status header was used when code was introduced in SM 1.1.1. There is
no explanation why 303 status is needed instead of standard 302.

tokul 19 éve
szülő
commit
52e4058f45
2 módosított fájl, 3 hozzáadás és 1 törlés
  1. 1 0
      ChangeLog
  2. 2 1
      src/signout.php

+ 1 - 0
ChangeLog

@@ -107,6 +107,7 @@ Version 1.5.2 - CVS
   - Removed conf.pl dependency on Perl IO::Socket module. Automatic detection
     of supported authentication mechanisms is disabled, if IO::Socket is not
     available.
+  - Removed HTTP Status header from signout page (#1424748).
 
 Version 1.5.1 (branched on 2006-02-12)
 --------------------------------------

+ 2 - 1
src/signout.php

@@ -40,7 +40,8 @@ do_hook('logout');
 sqsession_destroy();
 
 if ($signout_page) {
-    header('Status: 303 See Other');
+    // Status 303 header is disabled. PHP fastcgi bug. See 1.91 changelog.
+    //header('Status: 303 See Other');
     header("Location: $signout_page");
     exit; /* we send no content if we're redirecting. */
 }