diff --git a/src/www/firewall_nat_edit.php b/src/www/firewall_nat_edit.php index 8d479b5dd..63af3b295 100644 --- a/src/www/firewall_nat_edit.php +++ b/src/www/firewall_nat_edit.php @@ -187,6 +187,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $input_errors[] = sprintf(gettext("%s is not a valid IPv6 address."), $pconfig[$fieldname]); } } + if (!empty($pconfig['srcmask']) && !is_numericint($pconfig['srcmask'])) { $input_errors[] = gettext("A valid source bit count must be specified."); } @@ -557,7 +558,7 @@ $( document ).ready(function() {