Przeglądaj źródła

Added patch 103186 -- $HTTPS variable checking to case insensitive.

Tyler Akins 24 lat temu
rodzic
commit
220f0ea2b0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      functions/strings.php

+ 1 - 1
functions/strings.php

@@ -242,7 +242,7 @@
    
       // Check if this is a HTTPS or regular HTTP request
       $proto = "http://";
-      if(isset($HTTPS) && $HTTPS == 'on' ) {
+      if(isset($HTTPS) && !strcasecmp($HTTPS, 'on') ) {
         $proto = "https://";
       }