We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdb5142 commit 20c7c38Copy full SHA for 20c7c38
interface/web/dns/form/dns_a.tform.php
@@ -100,7 +100,7 @@
100
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
101
'errmsg'=> 'data_error_empty'),
102
1 => array ( 'type' => 'REGEX',
103
- 'regex' => '/^[0-9\.]{7,15}$/',
+ 'regex' => '/^([1-9]{1}|[1-9]\d|[1]\d\d|2[0-4]\d|25[0-5])\.(\d{1}|[1-9]\d|[1]\d\d|2[0-4]\d|25[0-5])\.(\d{1}|[1-9]\d|[1]\d\d|2[0-4]\d|25[0-5])\.(\d{1}|[1-9]\d|[1]\d\d|2[0-4]\d|25[0-5])$/',
104
'errmsg'=> 'data_error_regex'),
105
),
106
'default' => '',
0 commit comments