5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-03-19 18:50:06 +03:00

iapi-viewer: correctly encode type text

This commit is contained in:
Dietmar Maurer 2016-09-05 09:03:35 +02:00
parent b47424198c
commit 7f5866a309

View File

@ -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 '';
};