git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19002 44c647ce-9c0f-0410-b52a-842ac1e357ba
@@ -22,7 +22,7 @@
if (! isset($_GET['redirection'])) $_GET['redirection'] = 0;
$_GET['redirection']++;
-$https = isset($_SERVER['HTTPS']);
+$https = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off';
if ($_GET['redirection'] < 4) {
$target = 'http' . ($https ? 's://' : '://') . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];