diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2016-11-15 21:50:00 -0600 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2016-11-15 21:50:00 -0600 |
commit | 75bc87fe10f30f49a09218820f7bb59e859cb6bb (patch) | |
tree | 9d1ab487884dd448680b4fd0f0df1d034507dca2 /src | |
parent | 9128641db5c9b6839163948f3f71ad139c7a4625 (diff) | |
download | pfsense-75bc87fe10f30f49a09218820f7bb59e859cb6bb.zip pfsense-75bc87fe10f30f49a09218820f7bb59e859cb6bb.tar.gz |
Revert "Fix #6864 automatically convert IPv6 input to lowercase"
This reverts commit d461ff40e364fc0ecc003b9f673cbad7c6a08f2f.
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/classes/Form/IpAddress.class.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/usr/local/www/classes/Form/IpAddress.class.php b/src/usr/local/www/classes/Form/IpAddress.class.php index 812a2f7..da19afe 100644 --- a/src/usr/local/www/classes/Form/IpAddress.class.php +++ b/src/usr/local/www/classes/Form/IpAddress.class.php @@ -30,20 +30,17 @@ class Form_IpAddress extends Form_Input switch ($type) { case "BOTH": - $this->_attributes['pattern'] = '[a-f0-9:.]*'; + $this->_attributes['pattern'] = '[a-fA-F0-9:.]*'; $this->_attributes['title'] = 'An IPv4 address like 1.2.3.4 or an IPv6 address like 1:2a:3b:ffff::1'; - $this->_attributes['onChange'] = 'javascript:this.value=this.value.toLowerCase();'; break; case "V4": $this->_attributes['pattern'] = '[0-9.]*'; - $this->_attributes['title'] = 'An IPv4 address like 1.2.3.4'; break; case "V6": - $this->_attributes['pattern'] = '[a-f0-9:]*'; + $this->_attributes['pattern'] = '[a-fA-F0-9:]*'; $this->_attributes['title'] = 'An IPv6 address like 1:2a:3b:ffff::1'; - $this->_attributes['onChange'] = 'javascript:this.value=this.value.toLowerCase();'; break; } } |