Revision e691303d
Added by Steve Beaver about 4 years ago
src/usr/local/pfSense/include/www/firewall_nat_out.inc | ||
---|---|---|
146 | 146 |
$reqdfields = explode(" ", "interface protocol source source_subnet destination destination_subnet"); |
147 | 147 |
$reqdfieldsn = array(gettext("Interface"), gettext("Protocol"), gettext("Source"), gettext("Source bit count"), gettext("Destination"), gettext("Destination bit count")); |
148 | 148 |
|
149 |
do_input_validation($post, $reqdfields, $reqdfieldsn, $input_errors); |
|
149 |
if (!$json) { |
|
150 |
do_input_validation($post, $reqdfields, $reqdfieldsn, $input_errors); |
|
151 |
} |
|
150 | 152 |
|
151 | 153 |
$protocol_uses_ports = in_array($post['protocol'], explode(" ", "any tcp udp tcp/udp")); |
152 | 154 |
|
Also available in: Unified diff
Adjust validation for MVC