From e397860257fad8dc79405c4315129e9a63fc8c7b Mon Sep 17 00:00:00 2001 From: pblasquez Date: Thu, 4 Feb 2016 18:09:09 -0800 Subject: [PATCH 1/5] Update ajax_dash.php --- html/ajax_dash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/ajax_dash.php b/html/ajax_dash.php index d2e2b0a622..0ffc580679 100644 --- a/html/ajax_dash.php +++ b/html/ajax_dash.php @@ -55,5 +55,5 @@ $response = array( 'html' => $output, 'title' => $title, ); - +header('Content-type: application/json'); echo _json_encode($response); From ab6a608bdb29d711dc1e1ef398d7bb6ac9047524 Mon Sep 17 00:00:00 2001 From: pblasquez Date: Thu, 4 Feb 2016 18:09:47 -0800 Subject: [PATCH 2/5] Update ajax_table.php --- html/ajax_table.php | 1 + 1 file changed, 1 insertion(+) diff --git a/html/ajax_table.php b/html/ajax_table.php index f16cc2da97..c3513a68a8 100644 --- a/html/ajax_table.php +++ b/html/ajax_table.php @@ -36,6 +36,7 @@ $response = array(); if (isset($id)) { if (file_exists("includes/table/$id.inc.php")) { + header('Content-type: application/json'); include_once "includes/table/$id.inc.php"; } } From d62ad2eb029dfc095fb0f443ad1e33f561104f23 Mon Sep 17 00:00:00 2001 From: pblasquez Date: Thu, 4 Feb 2016 18:16:36 -0800 Subject: [PATCH 3/5] Update ajax_search.php --- html/ajax_search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/ajax_search.php b/html/ajax_search.php index e9ddad36f5..cb8d012a33 100644 --- a/html/ajax_search.php +++ b/html/ajax_search.php @@ -19,7 +19,7 @@ $bgp = array(); if (isset($_REQUEST['search'])) { $search = mres($_REQUEST['search']); - + header('Content-type: application/json'); if (strlen($search) > 0) { $found = 0; From 1b4dfd2fc6d7db200c55c66ce0585fb3c5a6d59d Mon Sep 17 00:00:00 2001 From: pblasquez Date: Thu, 4 Feb 2016 18:18:40 -0800 Subject: [PATCH 4/5] Update ajax_rulesuggest.php --- html/ajax_rulesuggest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/ajax_rulesuggest.php b/html/ajax_rulesuggest.php index cee773a2fc..850658939a 100644 --- a/html/ajax_rulesuggest.php +++ b/html/ajax_rulesuggest.php @@ -62,7 +62,7 @@ function levsort($base, $obj) { } - +header('Content-type: application/json'); $obj = array(array('name' => 'Error: No suggestions found.')); $term = array(); $current = false; From e8f773b0101fddc7f8985edad62d3d3cda1342da Mon Sep 17 00:00:00 2001 From: pblasquez Date: Thu, 4 Feb 2016 18:23:49 -0800 Subject: [PATCH 5/5] Update ajax_form.php --- html/ajax_form.php | 1 + 1 file changed, 1 insertion(+) diff --git a/html/ajax_form.php b/html/ajax_form.php index 999a43a4dc..3851d5b4f2 100644 --- a/html/ajax_form.php +++ b/html/ajax_form.php @@ -29,6 +29,7 @@ if (!$_SESSION['authenticated']) { if (preg_match('/^[a-zA-Z0-9\-]+$/', $_POST['type']) == 1) { if (file_exists('includes/forms/'.$_POST['type'].'.inc.php')) { + header('Content-type: application/json'); include_once 'includes/forms/'.$_POST['type'].'.inc.php'; } }