From ea27edf4dce645adcc3fb78991397acd84fd6609 Mon Sep 17 00:00:00 2001 From: Harshit Harchani Date: Sun, 7 Aug 2016 18:23:00 +0530 Subject: [PATCH] Remove use of getallheaders() --- src/app/controllers/page.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/controllers/page.php b/src/app/controllers/page.php index 123fc41..8aed569 100644 --- a/src/app/controllers/page.php +++ b/src/app/controllers/page.php @@ -73,8 +73,7 @@ function show($api = null) { "page_data" => $data ], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); } else { - $header = getallheaders(); - $is_ajax = isset($header["X-Ajax-Request"]) && $header["X-Ajax-Request"]; + $is_ajax = isset($_SERVER["HTTP_X_AJAX_REQUEST"]) && $_SERVER["HTTP_X_AJAX_REQUEST"]; if ($is_ajax) { foreach ($template_meta as $name => $meta) {