diff --git a/include/meta/easyui.php b/include/meta/easyui.php
index b923dd4e5..0970268bb 100644
--- a/include/meta/easyui.php
+++ b/include/meta/easyui.php
@@ -20,12 +20,11 @@
//require_once(dirname(__FILE__).'/config/vilesci.config.inc.php'); Muss vor dieser Datei eingebunden werden!
$ar = APP_ROOT;
-if(isset($_SERVER["https"]) && $_SERVER["https"] != "")
+if(isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] != "" && $_SERVER["HTTPS"] != "off")
$ar = preg_replace("/^http:/i", "https:", $ar);
else
$ar = preg_replace("/^https:/i", "http:", $ar);
-
//Originaldateien des Herstellers
echo '';
echo '';
diff --git a/include/meta/jquery-tablesorter.php b/include/meta/jquery-tablesorter.php
index 95f731036..845febbe0 100644
--- a/include/meta/jquery-tablesorter.php
+++ b/include/meta/jquery-tablesorter.php
@@ -19,9 +19,8 @@
*/
//require_once(dirname(__FILE__).'/config/vilesci.config.inc.php'); Muss vor dieser Datei eingebunden werden!
-
$ar = APP_ROOT;
-if(isset($_SERVER["https"]) && $_SERVER["https"] != "")
+if(isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] != "" && $_SERVER["HTTPS"] != "off")
$ar = preg_replace("/^http:/i", "https:", $ar);
else
$ar = preg_replace("/^https:/i", "http:", $ar);
diff --git a/include/meta/jquery.php b/include/meta/jquery.php
index 78521cf00..0415758f5 100644
--- a/include/meta/jquery.php
+++ b/include/meta/jquery.php
@@ -21,7 +21,7 @@
$ar = APP_ROOT;
-if(isset($_SERVER["https"]) && $_SERVER["https"] != "")
+if(isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] != "" && $_SERVER["HTTPS"] != "off")
$ar = preg_replace("/^http:/i", "https:", $ar);
else
$ar = preg_replace("/^https:/i", "http:", $ar);