mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Delay times can be fractional https://sourceforge.net/p/webadmin/bugs/5345/
This commit is contained in:
@@ -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});
|
||||
}
|
||||
|
||||
|
||||
@@ -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+)?$/ ||
|
||||
|
||||
Reference in New Issue
Block a user