Project

General

Profile

« Previous | Next » 

Revision a88f0ee6

Added by Phil Davis about 9 years ago

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)

View differences:

src/usr/local/www/classes/Form/IpAddress.class.php
41 41
				break;
42 42

  
43 43
			case "V4":
44
				$this->_attributes['pattern'] = '[a-f0-9.]*';
44
				$this->_attributes['pattern'] = '[0-9.]*';
45 45
				break;
46 46

  
47 47
			case "V6":
......
86 86
		</div>
87 87
EOT;
88 88
	}
89
}
89
}

Also available in: Unified diff