Revision 2bc256a9
Added by Vinicius Coque about 15 years ago
usr/local/www/firewall_nat_edit.php | ||
---|---|---|
180 | 180 |
$reqdfieldsn = explode(",", "Interface,Protocol,NAT IP"); |
181 | 181 |
} |
182 | 182 |
|
183 |
if ($_POST['srctype'] == "single" || $_POST['srctype'] == "network") { |
|
184 |
$reqdfields[] = "src"; |
|
185 |
$reqdfieldsn[] = "Source address"; |
|
186 |
} |
|
187 |
if ($_POST['dsttype'] == "single" || $_POST['dsttype'] == "network") { |
|
188 |
$reqdfields[] = "dst"; |
|
189 |
$reqdfieldsn[] = "Destination address"; |
|
190 |
} |
|
191 |
|
|
183 | 192 |
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); |
184 | 193 |
|
185 | 194 |
if (!$_POST['srcbeginport']) { |
Also available in: Unified diff
Validating Source address and Destination address