Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
0d3641ee
Commit
0d3641ee
authored
Feb 28, 2013
by
Damien PIQUET
Committed by
Dietmar Maurer
Mar 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix #301 Add container hostname validation in GUI
Signed-off-by:
Damien PIQUET
<
piqudam@gmail.com
>
parent
28bd65f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
CreateWizard.js
www/manager/openvz/CreateWizard.js
+9
-2
No files found.
www/manager/openvz/CreateWizard.js
View file @
0d3641ee
...
...
@@ -87,7 +87,14 @@ Ext.define('PVE.openvz.CreateWizard', {
value
:
''
,
fieldLabel
:
'
Hostname
'
,
skipEmptyText
:
true
,
allowBlank
:
true
allowBlank
:
true
,
validator
:
function
(
value
)
{
var
hostnamere
=
/^
[
a-zA-Z0-9
\-
.
]
+$/
;
if
(
value
&&
!
hostnamere
.
test
(
value
))
{
return
"
Hostname contains invalid characters !
"
;
}
return
true
;
}
}
],
column2
:
[
...
...
@@ -124,7 +131,7 @@ Ext.define('PVE.openvz.CreateWizard', {
validator
:
function
(
value
)
{
var
pw
=
me
.
down
(
'
field[name=password]
'
).
getValue
();
if
(
pw
!==
value
)
{
return
"
Pass
o
words does not match!
"
;
return
"
Passwords does not match!
"
;
}
return
true
;
}
...
...
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