Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
ced7fc44
Commit
ced7fc44
authored
Sep 05, 2011
by
tbrehm
Browse files
Fixed: FS#1616 - Extended URL validation
parent
c4c0e0bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/validate_cron.inc.php
View file @
ced7fc44
...
...
@@ -52,7 +52,7 @@ class validate_cron {
if
(
$parsed
[
"scheme"
]
!=
"http"
&&
$parsed
[
"scheme"
]
!=
"https"
)
return
$this
->
get_error
(
$validator
[
'errmsg'
]);
if
(
preg_match
(
"'^([a-z0-9][a-z0-9-]
{
0,62}\.)+([a-z]{2,
4
}
)$'i"
,
$parsed
[
"host"
])
==
false
)
return
$this
->
get_error
(
$validator
[
'errmsg'
]);
if
(
preg_match
(
"'^([a-z0-9][a-z0-9-]
{
0,62}\.)+([a-z]{2,
30
}
)$'i"
,
$parsed
[
"host"
])
==
false
)
return
$this
->
get_error
(
$validator
[
'errmsg'
]);
}
}
...
...
Write
Preview
Supports
Markdown
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