Revision b663d4ce
Added by Erik Fonnesbeck over 14 years ago
usr/local/www/firewall_nat_out_edit.php | ||
---|---|---|
139 | 139 |
if ($_POST['source_subnet'] && !is_numericint($_POST['source_subnet'])) { |
140 | 140 |
$input_errors[] = gettext("A valid source bit count must be specified."); |
141 | 141 |
} |
142 |
if ($protocol_uses_ports && $_POST['sourceport'] && !is_numericint($_POST['sourceport'])) { |
|
143 |
$input_errors[] = gettext("A valid source port must be specified."); |
|
144 |
} |
|
145 | 142 |
if ($_POST['destination_type'] != "any") { |
146 | 143 |
if ($_POST['destination'] && !is_ipaddr($_POST['destination'])) { |
147 | 144 |
$input_errors[] = gettext("A valid destination must be specified."); |
Also available in: Unified diff
Remove redundant input validation for source port that also prevents use of port ranges.