diff options
author | Steve Beaver <sbeaver@netgate.com> | 2016-11-22 10:44:38 -0500 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2016-11-22 10:45:52 -0500 |
commit | 499ff8fc7b2b5b160d9a91c2f063c979f4356e61 (patch) | |
tree | 42c6afb5bdb56db120373d0bbe5a8e73a8feef22 /src/usr/local | |
parent | 028596d8870c8a76fa0e2b53c2d87fd796634878 (diff) | |
download | pfsense-499ff8fc7b2b5b160d9a91c2f063c979f4356e61.zip pfsense-499ff8fc7b2b5b160d9a91c2f063c979f4356e61.tar.gz |
Added addrtolower calls to force IPv6 addresses to lower case
First of many
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/firewall_aliases_edit.php | 2 | ||||
-rw-r--r-- | src/usr/local/www/firewall_rules_edit.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/firewall_aliases_edit.php b/src/usr/local/www/firewall_aliases_edit.php index 80ea964..c1ae2f1 100644 --- a/src/usr/local/www/firewall_aliases_edit.php +++ b/src/usr/local/www/firewall_aliases_edit.php @@ -451,7 +451,7 @@ if ($_POST) { $tmpaddress .= "/" . $input_address_subnet[$idx]; } } - $address[] = $tmpaddress; + $address[] = addrtolower($tmpaddress); } unset($desc_fmt_err_found); if ($wrongaliases <> "") { diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php index cbadfd8..d025bf2 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -524,10 +524,10 @@ if ($_POST) { } if ($_POST['src']) { - $_POST['src'] = trim($_POST['src']); + $_POST['src'] = addrtolower(trim($_POST['src'])); } if ($_POST['dst']) { - $_POST['dst'] = trim($_POST['dst']); + $_POST['dst'] = addrtolower(trim($_POST['dst'])); } /* if user enters an alias and selects "network" then disallow. */ |