Révision 9060f420
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/firewall_aliases_edit.php | ||
---|---|---|
294 | 294 |
preg_match("/urltable/i", alias_get_type($_POST["address{$x}"])))) |
295 | 295 |
$wrongaliases .= " " . $_POST["address{$x}"]; |
296 | 296 |
} else if ($_POST['type'] == "port") { |
297 |
if (!is_port($_POST["address{$x}"])) |
|
297 |
if (!is_port($_POST["address{$x}"]) && !is_portrange($_POST["address{$x}"]))
|
|
298 | 298 |
$input_errors[] = $_POST["address{$x}"] . " " . gettext("is not a valid port or alias."); |
299 | 299 |
} else if ($_POST['type'] == "host" || $_POST['type'] == "network") { |
300 | 300 |
if (is_subnet($_POST["address{$x}"]) || (!is_ipaddr($_POST["address{$x}"]) |
Formats disponibles : Unified diff
Change is_port() to only validate a single port, we have is_portrange() for specific cases. Make necessary adjustments after check all is_port() calls. It fixes #3857