From 4f2709fe01453ec6fc9100b01cab73f81d68e94e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 28 Nov 2017 12:39:54 +0100 Subject: [PATCH] Enforce AJAX response MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- ajax.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ajax.php b/ajax.php index 99de1180ac..5f4fc8c22f 100644 --- a/ajax.php +++ b/ajax.php @@ -15,6 +15,7 @@ $_GET['ajax_request'] = 'true'; require_once 'libraries/common.inc.php'; $response = Response::getInstance(); +$response->setAJAX(true); if (empty($_POST['type'])) { Core::fatalError(__('Bad type!'));