Fixed bug #9571: Additional condition required to check SSL status in class.t3lib_div.php
authorOliver Hader <oliver.hader@typo3.org>
Fri, 31 Oct 2008 11:02:37 +0000 (11:02 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 31 Oct 2008 11:02:37 +0000 (11:02 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4391 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_div.php

index 5829d58..820a5b1 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-31  Oliver Hader  <oliver@typo3.org>
+
+       * Fixed bug #9571: Additional condition required to check SSL status in class.t3lib_div.php (thanks to Christian Kuhn)
+
 2008-10-31  Benjamin Mack  <benni@typo3.org>
 
        * Included the Javascript Widget Framework extJS in the TYPO3
index 5a0e469..a6aa303 100755 (executable)
@@ -3583,7 +3583,7 @@ final class t3lib_div {
                                if (t3lib_div::cmpIP($_SERVER['REMOTE_ADDR'], $proxySSL))       {
                                        $retVal = true;
                                } else {
-                                       $retVal = $_SERVER['SSL_SESSION_ID'] || !strcmp($_SERVER['HTTPS'],'on') || !strcmp($_SERVER['HTTPS'],'1') ? true : false;       // see http://bugs.typo3.org/view.php?id=3909
+                                       $retVal = $_SERVER['SSL_SESSION_ID'] || !strcasecmp($_SERVER['HTTPS'], 'on') || !strcmp($_SERVER['HTTPS'], '1') ? true : false; // see http://bugs.typo3.org/view.php?id=3909
                                }
                        break;
                        case '_ARRAY':