mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Time to ban for can be negative, meaning forever https://sourceforge.net/p/webadmin/bugs/4431/
This commit is contained in:
@@ -76,7 +76,7 @@ else {
|
||||
|
||||
# Validate various counters
|
||||
foreach my $f ("maxretry", "findtime", "bantime") {
|
||||
$in{$f.'_def'} || $in{$f} =~ /^[1-9]\d*$/ ||
|
||||
$in{$f.'_def'} || $in{$f} =~ /^\-?[1-9]\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} =~ /^[1-9]\d*$/ ||
|
||||
$in{$f.'_def'} || $in{$f} =~ /^\-?[1-9]\d*$/ ||
|
||||
&error($text{'jail_e'.$f});
|
||||
}
|
||||
$in{'destemail_def'} || $in{'destemail'} =~ /^\S+(\@\S+)?$/ ||
|
||||
|
||||
Reference in New Issue
Block a user