Project

General

Profile

« Previous | Next » 

Revision 04a893de

Added by Bipin Chandra over 10 years ago

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

View differences:

usr/local/pkg/miniupnpd.inc
98 98
			$input_errors[] = 'You must specify a valid traffic shaping queue.';
99 99

  
100 100
		/* user permissions validation */
101
		for ($i=0; $i<500; $i++){
101
		$j = substr_count(implode(array_keys($post)), "permuser");
102
		for ($i=0; $i<$j; $i++){
102 103
			if($post["permuser{$i}"]) {
103 104
				$perm = explode(' ',$post["permuser{$i}"]);
104 105
				/* should explode to 4 args */

Also available in: Unified diff