Fixed regexp in zmcamtool to accept names for currently existing MonitorPresets

This commit is contained in:
zlodag 2020-02-19 22:47:40 +13:00
parent cac7ddd89d
commit 1168db9df0
1 changed files with 1 additions and 2 deletions

View File

@ -352,8 +352,7 @@ sub exportsql {
}
my $name = $ARGV[0];
if ($name) {
$name =~ /([A-Za-z0-9 -]*)/; # Only allow alphanumeric, dash and space
if ($name && $name =~ /^([A-Za-z0-9 ,.&()\/\-]+)$/) { # Allow alphanumeric and " ,.&()/-"
$name = $1;
$command .= qq( --where="Name = '$name'");
}