summaryrefslogtreecommitdiffstats
path: root/inc/render.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2014-06-04 18:36:56 +0200
committerSimon Rettberg2014-06-04 18:36:56 +0200
commit360a06abe2cd5590997c15ee6466552cb79070f5 (patch)
tree2666ba51185f64acf6f97ff93c6b830dead9ae27 /inc/render.inc.php
parentDelete some more old files (diff)
downloadslx-admin-360a06abe2cd5590997c15ee6466552cb79070f5.tar.gz
slx-admin-360a06abe2cd5590997c15ee6466552cb79070f5.tar.xz
slx-admin-360a06abe2cd5590997c15ee6466552cb79070f5.zip
Check if HTTP_ACCEPT_ENCODING is set in $_SERVER before accessing it
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>