]> git.p6c8.net - jirafeau.git/blobdiff - lib/functions.php
Translated using Weblate (German)
[jirafeau.git] / lib / functions.php
index 25464977b6eed6d2e8a2b4d3b68bafb8bb638fac..c2cad4653d209eab87a083dff6e359f90644f9d1 100644 (file)
@@ -98,6 +98,9 @@ function is_ssl() {
             return true;
     } elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) {
         return true;
+    } elseif (isset($_SERVER['HTTP_X_FORWARDED_PROTO'])) {
+        if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
+            return true;
     }
     return false;
 }

patrick-canterino.de