svn: /web/php-master/trunk/include/ login.inc

From: Date: Tue, 29 Mar 2011 17:53:56 +0000
Subject: svn: /web/php-master/trunk/include/ login.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-10772@lists.php.net to get a copy of this message
danbrown Tue, 29 Mar 2011 17:53:56 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=309816 Log: Add a link and META refresh so we don't have to manually edit the location in the browser (especially on a mobile device). Changed paths: U web/php-master/trunk/include/login.inc Modified: web/php-master/trunk/include/login.inc =================================================================== --- web/php-master/trunk/include/login.inc 2011-03-29 17:43:05 UTC (rev 309815) +++ web/php-master/trunk/include/login.inc 2011-03-29 17:53:56 UTC (rev 309816) @@ -55,7 +55,8 @@ // At this point, we have logged in successfully if (!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] != "on") { - exit("Bad puppy. Use https."); + echo '<meta http-equiv="refresh" content="2;https://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'">'.PHP_EOL; + exit('Bad puppy. Use <a href="https://'.$_SERVER['HTTP_HOST'].'/'.$_SERVER['PHP_SELF'].'">HTTPS</a>.'); } $_SESSION["credentials"] = array($user, $pw);

« previous php.webmaster (#10772) next »