summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-02-26 10:33:39 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-02-26 10:34:13 -0300
commit59f64414ab456ea56751c0381b625205a28e064a (patch)
tree1295647451f237ab4b3bacccf2c5350ac97b318b /usr
parent5b06d6ad443633ae54a531440508a79723b8fb4a (diff)
downloadpfsense-59f64414ab456ea56751c0381b625205a28e064a.zip
pfsense-59f64414ab456ea56751c0381b625205a28e064a.tar.gz
Fix track6 prefix id range in error message, reported on Pull Request #1517
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/interfaces.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 69e19bf..795569c 100644
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -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)
OpenPOWER on IntegriCloud