Project

General

Profile

« Previous | Next » 

Revision 75bc87fe

Added by Luiz Souza almost 9 years ago

Revert "Fix #6864 automatically convert IPv6 input to lowercase"

This reverts commit d461ff40e364fc0ecc003b9f673cbad7c6a08f2f.

View differences:

src/usr/local/www/classes/Form/IpAddress.class.php
30 30

  
31 31
		switch ($type) {
32 32
			case "BOTH":
33
				$this->_attributes['pattern'] = '[a-f0-9:.]*';
33
				$this->_attributes['pattern'] = '[a-fA-F0-9:.]*';
34 34
				$this->_attributes['title'] = 'An IPv4 address like 1.2.3.4 or an IPv6 address like 1:2a:3b:ffff::1';
35
				$this->_attributes['onChange'] = 'javascript:this.value=this.value.toLowerCase();';
36 35
				break;
37 36

  
38 37
			case "V4":
39 38
				$this->_attributes['pattern'] = '[0-9.]*';
40
				$this->_attributes['title'] = 'An IPv4 address like 1.2.3.4';
41 39
				break;
42 40

  
43 41
			case "V6":
44
				$this->_attributes['pattern'] = '[a-f0-9:]*';
42
				$this->_attributes['pattern'] = '[a-fA-F0-9:]*';
45 43
				$this->_attributes['title'] = 'An IPv6 address like 1:2a:3b:ffff::1';
46
				$this->_attributes['onChange'] = 'javascript:this.value=this.value.toLowerCase();';
47 44
				break;
48 45
		}
49 46
	}

Also available in: Unified diff