From: Roland Haeder Date: Tue, 1 Mar 2016 13:49:07 +0000 (+0100) Subject: Don't miss to add exit() after header('Location: bla') as header() does *NOT* X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8616f0cc3526b0f0ca3d16800984e118c5d56d94;p=friendica.git 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 --- diff --git a/index.php b/index.php index e364389b2c..625c2d82dc 100644 --- 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");