projects
/
pve-docs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b474241
)
iapi-viewer: correctly encode type text
author
Dietmar Maurer
<dietmar@proxmox.com>
Mon, 5 Sep 2016 07:03:35 +0000
(09:03 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Mon, 5 Sep 2016 07:03:35 +0000
(09:03 +0200)
api-viewer/PVEAPI.js
patch
|
blob
|
blame
|
history
diff --git
a/api-viewer/PVEAPI.js
b/api-viewer/PVEAPI.js
index a27d6c41afdc305a2181203ff8a860a59227a45a..75168e6ea03a37da3db8de9066176ac43dfa507d 100644
(file)
--- a/
api-viewer/PVEAPI.js
+++ b/
api-viewer/PVEAPI.js
@@
-62,7
+62,7
@@
Ext.onReady(function() {
metaData.style = 'white-space:normal;'
if (pdef.typetext)
- return
pdef.typetext
;
+ return
Ext.htmlEncode(pdef.typetext)
;
if (pdef['enum'])
return pdef['enum'].join(' | ');
@@
-71,7
+71,7
@@
Ext.onReady(function() {
return pdef.format;
if (pdef.pattern)
- return
pdef.pattern
;
+ return
Ext.htmlEncode(pdef.pattern)
;
return '';
};