summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/local/www/classes/Form/IpAddress.class.php7
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 9a2cc16..5e03972 100644
--- a/src/usr/local/www/classes/Form/IpAddress.class.php
+++ b/src/usr/local/www/classes/Form/IpAddress.class.php
@@ -62,20 +62,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;
}
}
OpenPOWER on IntegriCloud