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>
This commit is contained in:
Roland Häder 2016-03-01 14:49:07 +01:00
parent 066ddada17
commit 8616f0cc35
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View file

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