mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update ajax_form.php
This commit is contained in:
@@ -29,6 +29,7 @@ if (!$_SESSION['authenticated']) {
|
|||||||
|
|
||||||
if (preg_match('/^[a-zA-Z0-9\-]+$/', $_POST['type']) == 1) {
|
if (preg_match('/^[a-zA-Z0-9\-]+$/', $_POST['type']) == 1) {
|
||||||
if (file_exists('includes/forms/'.$_POST['type'].'.inc.php')) {
|
if (file_exists('includes/forms/'.$_POST['type'].'.inc.php')) {
|
||||||
|
header('Content-type: application/json');
|
||||||
include_once 'includes/forms/'.$_POST['type'].'.inc.php';
|
include_once 'includes/forms/'.$_POST['type'].'.inc.php';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user