mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02: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 (file_exists('includes/forms/'.$_POST['type'].'.inc.php')) {
|
||||
header('Content-type: application/json');
|
||||
include_once 'includes/forms/'.$_POST['type'].'.inc.php';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user