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
22747e6b
Commit
22747e6b
authored
Jun 03, 2013
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug #368: use vtype 'DnsName' to verify host names
parent
cb71474e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
CreateWizard.js
www/manager/openvz/CreateWizard.js
+2
-8
DNS.js
www/manager/openvz/DNS.js
+1
-0
CreateWizard.js
www/manager/qemu/CreateWizard.js
+1
-0
No files found.
www/manager/openvz/CreateWizard.js
View file @
22747e6b
...
@@ -84,17 +84,11 @@ Ext.define('PVE.openvz.CreateWizard', {
...
@@ -84,17 +84,11 @@ Ext.define('PVE.openvz.CreateWizard', {
{
{
xtype
:
'
pvetextfield
'
,
xtype
:
'
pvetextfield
'
,
name
:
'
hostname
'
,
name
:
'
hostname
'
,
vtype
:
'
DnsName
'
,
value
:
''
,
value
:
''
,
fieldLabel
:
'
Hostname
'
,
fieldLabel
:
'
Hostname
'
,
skipEmptyText
:
true
,
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
:
[
column2
:
[
...
...
www/manager/openvz/DNS.js
View file @
22747e6b
...
@@ -30,6 +30,7 @@ Ext.define('PVE.openvz.DNS', {
...
@@ -30,6 +30,7 @@ Ext.define('PVE.openvz.DNS', {
items
:
{
items
:
{
xtype
:
'
textfield
'
,
xtype
:
'
textfield
'
,
name
:
'
hostname
'
,
name
:
'
hostname
'
,
vtype
:
'
DnsName
'
,
value
:
''
,
value
:
''
,
fieldLabel
:
'
Hostname
'
,
fieldLabel
:
'
Hostname
'
,
allowBlank
:
true
,
allowBlank
:
true
,
...
...
www/manager/qemu/CreateWizard.js
View file @
22747e6b
...
@@ -68,6 +68,7 @@ Ext.define('PVE.qemu.CreateWizard', {
...
@@ -68,6 +68,7 @@ Ext.define('PVE.qemu.CreateWizard', {
{
{
xtype
:
'
textfield
'
,
xtype
:
'
textfield
'
,
name
:
'
name
'
,
name
:
'
name
'
,
vtype
:
'
DnsName
'
,
value
:
''
,
value
:
''
,
fieldLabel
:
gettext
(
'
Name
'
),
fieldLabel
:
gettext
(
'
Name
'
),
allowBlank
:
true
allowBlank
:
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