summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/classes
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:44 -0400
commite4c5b7d42c70c281468f2844484a3bdebf8b82f2 (patch)
treee37e67d6c140af702bdf53c7e6f73b7d4cf88038 /src/usr/local/www/classes
parentaceaf18c1ad93c808b77e0bbf324949d5d2eede0 (diff)
downloadpfsense-e4c5b7d42c70c281468f2844484a3bdebf8b82f2.zip
pfsense-e4c5b7d42c70c281468f2844484a3bdebf8b82f2.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/classes')
-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