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:
this.editor.graph.setBackgroundImage;var E=this.pages[0];this.currentPage==E?z.setBackgroundImage(D):null!=E.viewState&&null!=E.viewState&&(D=E.viewState.backgroundImage,z.setBackgroundImage(D));z.getGlobalVariable=function(R){return"page"==R?E.getName():"pagenumber"==R?1:K.apply(this,arguments)};z.getGlobalVariable=K;document.body.appendChild(z.container);z.model.setRoot(E.root)}if(mxClient.IS_CHROMEAPP||this.useCanvasForExport)this.editor.exportToCanvas(mxUtils.bind(this,function(R){try{z!=this.editor.graph&&