new scan menu
This commit is contained in:
13
common.php
Normal file
13
common.php
Normal 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.:\/_ -]+$/'],
|
||||
]);
|
Reference in New Issue
Block a user