mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix track6 prefix id range in error message, reported on Pull Request #1517
This commit is contained in:
parent
a41d910c6e
commit
aa2370d834
@ -611,7 +611,8 @@ if ($_POST['apply']) {
|
||||
} else {
|
||||
$track6_prefix_id = intval($_POST['track6-prefix-id--hex'], 16);
|
||||
if ($track6_prefix_id < 0 || $track6_prefix_id > $_POST['ipv6-num-prefix-ids-' . $_POST['track6-interface']]) {
|
||||
$input_errors[] = gettext("You specified an IPv6 prefix ID that is out of range. ({$_POST['track6-interface']}) - ({$_POST['ipv6-num-prefix-ids-' . $_POST['track6-interface']]}) - ({$ipv6_delegation_length})");
|
||||
$input_errors[] = gettext("You specified an IPv6 prefix ID that is out of range.") .
|
||||
" ({$_POST['track6-interface']}) - (0) - (" . sprintf('%x', $_POST['ipv6-num-prefix-ids-' . $_POST['track6-interface']]) . ")";
|
||||
} else {
|
||||
foreach ($ifdescrs as $ifent => $ifdescr) {
|
||||
if ($if == $ifent)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user