Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
t.getGlobalVariable=function(T){return"page"==T?B.getName():"pagenumber"==T?1:I.apply(this,arguments)};document.body.appendChild(t.container);t.model.setRoot(B.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(T){try{null==C&&(C=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var l=T.toDataURL("image/png");l=Editor.writeGraphModelToPng(l,"tEXt","mxfile",encodeURIComponent(C));c(l.substring(l.lastIndexOf(",")+1));t!=this.editor.graph&&t.container.parentNode.removeChild(t.container)}catch(n){null!=