Skip to content

Commit e414a41

Browse files
committed
Implements #6884 Subdomain for website lacks empty check for hostname
1 parent e5f1ba4 commit e414a41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

interface/web/sites/web_childdomain_edit.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ function onSubmit() {
196196
if(!$domain) {
197197
$app->tform->errorMessage .= $app->tform->lng("domain_error_empty")."<br />";
198198
} else {
199+
// $this->dataRecord['domain'] may not be empty
200+
if(empty($this->dataRecord['domain'])) {
201+
$app->tform->errorMessage .= $app->tform->lng("domain_error_empty")."<br />";
202+
}
199203
$this->dataRecord['domain'] = $this->dataRecord['domain'] . '.' . $domain;
200204
}
201205
} else {

0 commit comments

Comments
 (0)