diff options
author | Simon Rettberg | 2014-06-04 18:36:56 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-06-04 18:36:56 +0200 |
commit | 360a06abe2cd5590997c15ee6466552cb79070f5 (patch) | |
tree | 2666ba51185f64acf6f97ff93c6b830dead9ae27 /inc/render.inc.php | |
parent | Delete some more old files (diff) | |
download | slx-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.php | 2 |
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> |