Update ajax_form.php

This commit is contained in:
pblasquez
2016-02-04 18:23:49 -08:00
parent 1b4dfd2fc6
commit e8f773b010

View File

@@ -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';
}
}