Allow entering of fractional MB quotas

This commit is contained in:
Jamie Cameron
2012-10-27 09:59:43 -07:00
parent 2bf2cb7d8e
commit e722f1002d
2 changed files with 2 additions and 2 deletions

View File

@ -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});
}

View File

@ -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});
}