multiple allow/deny entries for UPnP (rowhelper)

with this additional change we can allow infinite number of entries
rather than just 500 due to the for loop set to a max of 500 because the
rowhelper control doesnt post as an array but just adds a number at the
end of the variable and we try and modify the pkg_edit.php file then it
would affect other packages
This commit is contained in:
xbipin 2015-01-28 13:26:54 +04:00
parent 085136fe60
commit 04a893de74

View File

@ -98,7 +98,8 @@
$input_errors[] = 'You must specify a valid traffic shaping queue.';
/* user permissions validation */
for ($i=0; $i<500; $i++){
$j = substr_count(implode(array_keys($post)), "permuser");
for ($i=0; $i<$j; $i++){
if($post["permuser{$i}"]) {
$perm = explode(' ',$post["permuser{$i}"]);
/* should explode to 4 args */