tor.cgi: Check for valid accounting limit.

This commit is contained in:
Michael Tremer
2013-08-02 11:27:14 +02:00
parent bd8b033078
commit 56bf9f2174
10 changed files with 16 additions and 0 deletions

View File

@@ -116,6 +116,10 @@ if ($settings{'ACTION'} eq $Lang::tr{'save'}) {
}
}
if ($settings{'TOR_RELAY_ACCOUNTING_LIMIT'} !~ /^\d+$/) {
$errormessage = "$Lang::tr{'tor errmsg invalid accounting limit'}: $settings{'TOR_RELAY_ACCOUNTING_LIMIT'}";
}
my @temp = split(/[\n,]/,$settings{'TOR_ALLOWED_SUBNETS'});
$settings{'TOR_ALLOWED_SUBNETS'} = "";
foreach (@temp) {