Language: JavaScript
Label: safe
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

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