mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
085136fe60
commit
04a893de74
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user