This commit is contained in:
Jamie Cameron
2020-01-07 21:49:36 -08:00
parent 2759ca72e5
commit e2525d7299
2 changed files with 2 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ else {
# Validate various counters
foreach my $f ("maxretry", "findtime", "bantime") {
$in{$f.'_def'} || $in{$f} =~ /^\-?\d+$/ ||
$in{$f.'_def'} || $in{$f} =~ /^\-?\d+(\.\d+)?$/ ||
&error($text{'jail_e'.$f});
}

View File

@@ -15,7 +15,7 @@ $jail || &error($text{'jaildef_egone'});
# Validate inputs
foreach my $f ("maxretry", "findtime", "bantime") {
$in{$f.'_def'} || $in{$f} =~ /^\-?\d+$/ ||
$in{$f.'_def'} || $in{$f} =~ /^\-?\d+(\.\d+)?$/ ||
&error($text{'jail_e'.$f});
}
$in{'destemail_def'} || $in{'destemail'} =~ /^\S+(\@\S+)?$/ ||