]> git.mxchange.org Git - friendica.git/commitdiff
Don't miss to add exit() after header('Location: bla') as header() does *NOT*
authorRoland Haeder <roland@mxchange.org>
Tue, 1 Mar 2016 13:49:07 +0000 (14:49 +0100)
committerRoland Haeder <roland@mxchange.org>
Tue, 1 Mar 2016 13:49:07 +0000 (14:49 +0100)
exit the script quickly enough. Always use an explicit exit() or you get real
trouble.

Signed-off-by: Roland Haeder <roland@mxchange.org>
index.php

index e364389b2cf36ada83138e23c1c3da8f1c9ca82a..625c2d82dc5806929ad7697e919e83eb319c403a 100644 (file)
--- a/index.php
+++ b/index.php
@@ -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");