Skip to content

Commit 41e1628

Browse files
author
Till Brehm
committed
Merge branch 'stable-3.1' into 'stable-3.1'
Fix #4931 Allow underscore in cron domain names See merge request ispconfig/ispconfig3!717
2 parents 87b3ba1 + aa12656 commit 41e1628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/validate_cron.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function command_format($field_name, $field_value, $validator) {
5252

5353
if($parsed["scheme"] != "http" && $parsed["scheme"] != "https") return $this->get_error($validator['errmsg']);
5454

55-
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']);
55+
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']);
5656
}
5757
if(strpos($field_value, "\n") !== false || strpos($field_value, "\r") !== false || strpos($field_value, chr(0)) !== false) {
5858
return $this->get_error($validator['errmsg']);

0 commit comments

Comments
 (0)