new scan menu

This commit is contained in:
2024-10-07 20:42:16 +02:00
parent b02c89973c
commit d5dd51921c
6 changed files with 77 additions and 71 deletions

13
common.php Normal file
View File

@ -0,0 +1,13 @@
<?php
include_once 'config.php';
$name = filter_input(INPUT_GET, 'name', FILTER_VALIDATE_REGEXP, [
'flags' => FILTER_NULL_ON_FAILURE,
'options' => ['regexp' => '/^[^<>:"\/|?]+$/'],
]);
$targets = filter_input(INPUT_GET, 'targets', FILTER_VALIDATE_REGEXP, [
'flags' => FILTER_NULL_ON_FAILURE,
'options' => ['regexp' => '/^[\da-zA-Z.:\/_ -]+$/'],
]);