]> git.wh0rd.org - tt-rss.git/blobdiff - backend.php
only enable ob_gzhandler if it exists
[tt-rss.git] / backend.php
index 3b1208f316997965ba901716ca519eabec7c50e3..efc3793d303213ff0c0ef349392f988b52383653 100644 (file)
@@ -35,7 +35,7 @@
                return;
        }
 
-       $csrf_token = $_REQUEST['csrf_token'];
+       @$csrf_token = $_REQUEST['csrf_token'];
 
        require_once "functions.php";
        require_once "sessions.php";
@@ -56,7 +56,7 @@
 
        header("Content-Type: text/plain; charset=utf-8");
 
-       if (ENABLE_GZIP_OUTPUT) {
+       if (ENABLE_GZIP_OUTPUT && function_exists("ob_gzhandler")) {
                ob_start("ob_gzhandler");
        }