Browse Source

Don't miss to add exit() after header('Location: bla') as header() does *NOT*

exit the script quickly enough. Always use an explicit exit() or you get real
trouble.

Signed-off-by: Roland Haeder <roland@mxchange.org>
pull/2390/head
Roland Haeder 5 years ago
parent
commit
2247d85b28
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      index.php

+ 2
- 1
index.php View File

@ -72,7 +72,8 @@ if(!$install) {
(intval(get_config('system','ssl_policy')) == SSL_POLICY_FULL) AND
(substr($a->get_baseurl(), 0, 8) == "https://")) {
header("HTTP/1.1 302 Moved Temporarily");
header("location: ".$a->get_baseurl()."/".$a->query_string);
header("Location: ".$a->get_baseurl()."/".$a->query_string);
exit();
}
require_once("include/session.php");


Loading…
Cancel
Save