Revision aba8aace
Added by Scott Ullrich over 20 years ago
usr/local/www/firewall_rules_edit.php | ||
---|---|---|
250 | 250 |
} |
251 | 251 |
|
252 | 252 |
if (($_POST['srcbeginport'] && !alias_expand($_POST['srcbeginport']) && !is_port($_POST['srcbeginport']))) { |
253 |
$input_errors[] = "The start source port must be an integer between 1 and 65535."; |
|
253 |
$input_errors[] = "The start source port must be an alias or integer between 1 and 65535.";
|
|
254 | 254 |
} |
255 | 255 |
if (($_POST['srcendport'] && !alias_expand($_POST['srcendport']) && !is_port($_POST['srcendport']))) { |
256 |
$input_errors[] = "The end source port must be an integer between 1 and 65535."; |
|
256 |
$input_errors[] = "The end source port must be an alias or integer between 1 and 65535.";
|
|
257 | 257 |
} |
258 | 258 |
if (($_POST['dstbeginport'] && !alias_expand($_POST['dstbeginport']) && !is_port($_POST['dstbeginport']))) { |
259 |
$input_errors[] = "The start destination port must be an integer between 1 and 65535."; |
|
259 |
$input_errors[] = "The start destination port must be an alias or integer between 1 and 65535.";
|
|
260 | 260 |
} |
261 | 261 |
if (($_POST['dstendport'] && !alias_expand($_POST['dstbeginport']) && !is_port($_POST['dstendport']))) { |
262 |
$input_errors[] = "The end destination port must be an integer between 1 and 65535."; |
|
262 |
$input_errors[] = "The end destination port must be an alias or integer between 1 and 65535.";
|
|
263 | 263 |
} |
264 | 264 |
|
265 | 265 |
if (!is_specialnet($_POST['srctype'])) { |
Also available in: Unified diff
On input validation note that the source or destionation ports can now be aliases.