Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
20c7c380
Commit
20c7c380
authored
Feb 23, 2010
by
tbrehm
Browse files
Improved IP regex check. Thanks to jdemarchi for the patch.
parent
fdb51429
Changes
1
Show whitespace changes
Inline
Side-by-side
interface/web/dns/form/dns_a.tform.php
View file @
20c7c380
...
...
@@ -100,7 +100,7 @@ $form["tabs"]['dns'] = array (
'validators'
=>
array
(
0
=>
array
(
'type'
=>
'NOTEMPTY'
,
'errmsg'
=>
'data_error_empty'
),
1
=>
array
(
'type'
=>
'REGEX'
,
'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])
$/'
,
'errmsg'
=>
'data_error_regex'
),
),
'default'
=>
''
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment