Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2016-01-18 11:24:23 +0300
committerMichal Čihař <michal@cihar.com>2016-01-19 10:32:34 +0300
commit0a24f92d081033576bfdd9d4bdec1a54501734c1 (patch)
treeabb51a6dc50c84a40cfbd429a65704f7e3ee38fc /lint.php
parentdbb267308dfcc458570e3c0af7835059aa06126c (diff)
Set correct content type for JSON responses
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'lint.php')
-rw-r--r--lint.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lint.php b/lint.php
index 9aef982888..3aee35ba96 100644
--- a/lint.php
+++ b/lint.php
@@ -31,7 +31,8 @@ require_once 'libraries/Linter.class.php';
$sql_query = !empty($_POST['sql_query']) ? $_POST['sql_query'] : '';
// Disabling standard response.
-$response = PMA_Response::getInstance();
-$response->disable();
+PMA_Response::getInstance()->disable();
+
+PMA_headerJSON();
echo json_encode(PMA_Linter::lint($sql_query));