mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
Allow entering of fractional MB quotas
This commit is contained in:
@ -16,7 +16,7 @@ $access{'ro'} && &error(&text('egroup_eallowgr', $u));
|
||||
|
||||
# Validate inputs
|
||||
foreach $t ('sblocks', 'hblocks', 'sfiles', 'hfiles') {
|
||||
$in{$t."_def"} != 2 || $in{$t} =~ /^\d+$/ ||
|
||||
$in{$t."_def"} != 2 || $in{$t} =~ /^\d+(\.\d+)?$/ ||
|
||||
&error($text{'umass_e'.$t});
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ $access{'ro'} && &error(&text('euser_eallowus', $u));
|
||||
|
||||
# Validate inputs
|
||||
foreach $t ('sblocks', 'hblocks', 'sfiles', 'hfiles') {
|
||||
$in{$t."_def"} != 2 || $in{$t} =~ /^\d+$/ ||
|
||||
$in{$t."_def"} != 2 || $in{$t} =~ /^\d+(\.\d+)?$/ ||
|
||||
&error($text{'umass_e'.$t});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user