save if name only
This commit is contained in:
		| @ -10,7 +10,7 @@ $tempoRegex              = '/^\d+[smh]?$/'; | ||||
| $fileNameRegex           = '/^[^<>:\/|?]+$/'; | ||||
|  | ||||
| $targets = filter_input(INPUT_GET, 'targets', FILTER_VALIDATE_REGEXP, ['options' => ['regexp' => $targetsListRegex], "flags" => FILTER_NULL_ON_FAILURE]); | ||||
| $preset  = filter_input(INPUT_GET, "preset"); | ||||
| $preset  = filter_input(INPUT_GET, "preset", FILTER_SANITIZE_STRING); | ||||
|  | ||||
| if ($preset && isset($presets[$preset])) { | ||||
|   $options = $presets[$preset]; | ||||
| @ -116,6 +116,9 @@ if ($preset && isset($presets[$preset])) { | ||||
|   ], false) ?: $presets["default"]; | ||||
| } | ||||
|  | ||||
| $options["--datadir"] = $DATADIR; | ||||
| $options["--script-args-file"] = $SCRIPTARGS; | ||||
|  | ||||
| /*echo "<!--"; | ||||
| var_dump($options); | ||||
| echo "-->\n";*/ | ||||
		Reference in New Issue
	
	Block a user