Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
336368db
Commit
336368db
authored
Feb 16, 2014
by
Till Brehm
Browse files
Fixed: FS#2875 - Punycode domain name is not supports at Crone command line
parent
f639109e
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/validate_cron.inc.php
View file @
336368db
...
...
@@ -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,30
}
)$'i"
,
$parsed
[
"host"
])
==
false
)
return
$this
->
get_error
(
$validator
[
'errmsg'
]);
if
(
preg_match
(
"'^([a-z0-9][a-z0-9
\
-]
{
0,62}\.)+([
A-Za-z0-9\-
]{2,30
}
)$'i"
,
$parsed
[
"host"
])
==
false
)
return
$this
->
get_error
(
$validator
[
'errmsg'
]);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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