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:
O.length?(O=null!=X.createElementNS?X.createElementNS(mxConstants.NS_SVG,"defs"):X.createElement("defs"),null!=l.firstChild?l.insertBefore(O,l.firstChild):l.appendChild(O)):O=O[0];l=null!=X.createElementNS?X.createElementNS(mxConstants.NS_SVG,"style"):X.createElement("style");l.setAttribute("type","text/css");mxUtils.setTextContent(l,A);O.appendChild(l)}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(l,
A,O){var X=mxClient.IS_FF?8192:16384;return Math.min(O,Math.min(X/l,X/A))};Editor.prototype.exportToCanvas=function(l,A,O,X,U,aa,ba,ia,qa,ra,pa,xa,Ca,Aa,za,Ma,Qa,Oa){try{aa=null!=aa?aa:!0;ba=null!=ba?ba:!0;xa=null!=xa?xa:this.graph;Ca=null!=Ca?Ca:0;var ta=qa?null:xa.background;ta==mxConstants.NONE&&(ta=null);null==ta&&(ta=X);null==ta&&0==qa&&(ta=Ma?this.graph.defaultPageBackgroundColor:"#ffffff");this.convertImages(xa.getSvg(null,null,Ca,Aa,null,ba,null,null,null,ra,null,Ma,Qa,Oa),mxUtils.bind(this,