summaryrefslogtreecommitdiffstats
path: root/inc/render.inc.php
diff options
context:
space:
mode:
authorJonathan Bauer2014-06-04 18:38:06 +0200
committerJonathan Bauer2014-06-04 18:38:06 +0200
commit06a062b6daa67f4e039b55adf72112efcbd40fef (patch)
tree97407f0e1ed526c13b4dcd178fdce0d8570276dc /inc/render.inc.php
parentremove broken error handling + href 'back' button (diff)
parentCheck if HTTP_ACCEPT_ENCODING is set in $_SERVER before accessing it (diff)
downloadslx-admin-06a062b6daa67f4e039b55adf72112efcbd40fef.tar.gz
slx-admin-06a062b6daa67f4e039b55adf72112efcbd40fef.tar.xz
slx-admin-06a062b6daa67f4e039b55adf72112efcbd40fef.zip
Merge branch 'master' of git.openslx.org:openslx-ng/slx-admin
Diffstat (limited to 'inc/render.inc.php')
-rw-r--r--inc/render.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/render.inc.php b/inc/render.inc.php
index 6853acde..4fe9d002 100644
--- a/inc/render.inc.php
+++ b/inc/render.inc.php
@@ -32,7 +32,7 @@ class Render
public static function output()
{
Header('Content-Type: text/html; charset=utf-8');
- $zip = (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false);
+ $zip = isset($_SERVER['HTTP_ACCEPT_ENCODING']) && (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false);
if ($zip) ob_start();
echo
'<!DOCTYPE html>