summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-03-04 14:55:59 -0500
committerjim-p <jimp@pfsense.org>2013-03-04 14:56:33 -0500
commit9b64b52d144adb3de77a9ecceadaa07f3337b93a (patch)
treed6352b1726018379be6bc8ba6530696f8a134723
parenta11fb612618cf15182514ad35641a57f12966aea (diff)
downloadpfsense-9b64b52d144adb3de77a9ecceadaa07f3337b93a.zip
pfsense-9b64b52d144adb3de77a9ecceadaa07f3337b93a.tar.gz
Use the correct interface number (old code broke for >= 10)
-rwxr-xr-xusr/local/www/interfaces_assign.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php
index 73b697b..8945c83 100755
--- a/usr/local/www/interfaces_assign.php
+++ b/usr/local/www/interfaces_assign.php
@@ -462,7 +462,7 @@ if(file_exists("/var/run/interface_mismatch_reboot_needed"))
} elseif ($portinfo['isqinq']) {
echo htmlspecialchars($portinfo['descr']);
} elseif (substr($portname, 0, 4) == 'ovpn') {
- echo htmlspecialchars($portname . " (" . $ovpn_descrs[substr($portname, 5, 1)] . ")");
+ echo htmlspecialchars($portname . " (" . $ovpn_descrs[substr($portname, 5)] . ")");
} else
echo htmlspecialchars($portname . " (" . $portinfo['mac'] . ")");
?></option>
OpenPOWER on IntegriCloud