summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-02-04 13:35:32 +0000
committerErmal <eri@pfsense.org>2013-02-04 13:36:25 +0000
commitb5b5bcc041484d070fdcd1c2fecef777d85b78e7 (patch)
tree360600f1f115bbfcc045805c4f769c801968ce5f /usr/local/www/system_gateways_edit.php
parenta75a49f6e5c31568af6c25bb95d833a0be69fa00 (diff)
downloadpfsense-b5b5bcc041484d070fdcd1c2fecef777d85b78e7.zip
pfsense-b5b5bcc041484d070fdcd1c2fecef777d85b78e7.tar.gz
Make more strict checks during is_ip* functions. Helps http://forum.pfsense.org/index.php/topic,58399.0.html and http://forum.pfsense.org/index.php/topic,58273.0.html
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-xusr/local/www/system_gateways_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index f040520..7fcfb97 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -124,7 +124,7 @@ if ($_POST) {
$input_errors[] = sprintf(gettext("The gateway address %1\$s does not lie within the chosen interface's subnet '%2\$s'."), $_POST['gateway'],$subnet);
}
}
- if(is_ipaddrv6($_POST['gateway'])) {
+ else if(is_ipaddrv6($_POST['gateway'])) {
/* do not do a subnet match on a link local address, it's valid */
if(! preg_match("/fe80::/", $_POST['gateway'])) {
$parent_ip = get_interface_ipv6($_POST['interface']);
OpenPOWER on IntegriCloud