summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces.php
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:05 -0300
commitaa2370d8341b9ece91c30a500aac4c19a4e78795 (patch)
tree589f4bb78de3917af74cbffae2fba14ae911be35 /usr/local/www/interfaces.php
parenta41d910c6e2ed0cc050a96b38a4816e3fd660d17 (diff)
downloadpfsense-aa2370d8341b9ece91c30a500aac4c19a4e78795.zip
pfsense-aa2370d8341b9ece91c30a500aac4c19a4e78795.tar.gz
Fix track6 prefix id range in error message, reported on Pull Request #1517
Diffstat (limited to 'usr/local/www/interfaces.php')
-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