We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 87b3ba1 + aa12656 commit 41e1628Copy full SHA for 41e1628
1 file changed
interface/lib/classes/validate_cron.inc.php
@@ -52,7 +52,7 @@ function command_format($field_name, $field_value, $validator) {
52
53
if($parsed["scheme"] != "http" && $parsed["scheme"] != "https") return $this->get_error($validator['errmsg']);
54
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']);
+ 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']);
56
}
57
if(strpos($field_value, "\n") !== false || strpos($field_value, "\r") !== false || strpos($field_value, chr(0)) !== false) {
58
return $this->get_error($validator['errmsg']);
0 commit comments