From e8f773b0101fddc7f8985edad62d3d3cda1342da Mon Sep 17 00:00:00 2001 From: pblasquez Date: Thu, 4 Feb 2016 18:23:49 -0800 Subject: [PATCH] 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'; } }