Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
baa7f273
Commit
baa7f273
authored
Feb 17, 2014
by
Till Brehm
Browse files
Fixed vhostsubdomain not empty regex check to allow 1 char subdomains.
parent
ce1c6d84
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/sites/web_vhost_subdomain_edit.php
View file @
baa7f273
...
...
@@ -349,7 +349,7 @@ class page_action extends tform_actions {
if
(
$app
->
tform
->
getCurrentTab
()
==
'domain'
)
{
// Check that domain (the subdomain part) is not empty
if
(
!
preg_match
(
'/^[a-zA-Z0-9].
+
/'
,
$this
->
dataRecord
[
'domain'
]))
{
if
(
!
preg_match
(
'/^[a-zA-Z0-9].
*
/'
,
$this
->
dataRecord
[
'domain'
]))
{
$app
->
tform
->
errorMessage
.
=
$app
->
tform
->
lng
(
"subdomain_error_empty"
)
.
"<br />"
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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