diff options
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_shaper_layer7.php | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/usr/local/www/firewall_shaper_layer7.php b/usr/local/www/firewall_shaper_layer7.php index c7cbcdc..356e6fb 100755 --- a/usr/local/www/firewall_shaper_layer7.php +++ b/usr/local/www/firewall_shaper_layer7.php @@ -121,15 +121,10 @@ else if ($_POST) { if($_POST['submit']) {
$l7r =& new layer7();
$_POST['divert_port'] = $l7r->gen_divert_port();
- for($i=0; $i<100; $i++) {
- if($_POST['protocol'][$i] <> "") {
- $_POST['l7rules'][$i]['protocol'] = $_POST['protocol'][$i];
- $_POST['l7rules'][$i]['structure'] = $_POST['structure'][$i];
- $_POST['l7rules'][$i]['behaviour'] = $_POST['behaviour'][$i];
- }
- else {
- break;
- }
+ for($i=0; $_POST['protocol'][$i] <> ""; $i++) {
+ $_POST['l7rules'][$i]['protocol'] = $_POST['protocol'][$i];
+ $_POST['l7rules'][$i]['structure'] = $_POST['structure'][$i];
+ $_POST['l7rules'][$i]['behaviour'] = $_POST['behaviour'][$i];
}
$l7r->validate_input($_POST,&$input_errors);
$l7r->ReadConfig($_POST['container'], $_POST);
|