summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-06-28 14:20:22 +0930
committerStephen Beaver <sbeaver@netgate.com>2016-06-28 08:49:54 -0400
commita88f0ee6b543c535238cf7bc4e0f71f7113d90fe (patch)
tree1e017103b85507f7f3cb45b14f03ad0231cea7cb /src/usr/local/www
parent71d3c2f7523833f8cfd623cfe2a8c5e8b205126a (diff)
downloadpfsense-a88f0ee6b543c535238cf7bc4e0f71f7113d90fe.zip
pfsense-a88f0ee6b543c535238cf7bc4e0f71f7113d90fe.tar.gz
Remove a-f from IPv4 address pattern
It seems to me that a through f should not be part of the pattern for the "V4" case. (cherry picked from commit 1f49dd8a3a49b724ded5840c1db6c168ed466aae)
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/classes/Form/IpAddress.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/classes/Form/IpAddress.class.php b/src/usr/local/www/classes/Form/IpAddress.class.php
index 72f885f..f68493d 100644
--- a/src/usr/local/www/classes/Form/IpAddress.class.php
+++ b/src/usr/local/www/classes/Form/IpAddress.class.php
@@ -41,7 +41,7 @@ class Form_IpAddress extends Form_Input
break;
case "V4":
- $this->_attributes['pattern'] = '[a-f0-9.]*';
+ $this->_attributes['pattern'] = '[0-9.]*';
break;
case "V6":
@@ -86,4 +86,4 @@ class Form_IpAddress extends Form_Input
</div>
EOT;
}
-} \ No newline at end of file
+}
OpenPOWER on IntegriCloud