Skip to content

Commit baa7f27

Browse files
author
Till Brehm
committed
Fixed vhostsubdomain not empty regex check to allow 1 char subdomains.
1 parent ce1c6d8 commit baa7f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/sites/web_vhost_subdomain_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ function onSubmit() {
349349
if($app->tform->getCurrentTab() == 'domain') {
350350

351351
// Check that domain (the subdomain part) is not empty
352-
if(!preg_match('/^[a-zA-Z0-9].+/',$this->dataRecord['domain'])) {
352+
if(!preg_match('/^[a-zA-Z0-9].*/',$this->dataRecord['domain'])) {
353353
$app->tform->errorMessage .= $app->tform->lng("subdomain_error_empty")."<br />";
354354
}
355355

0 commit comments

Comments
 (0)