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.resolvedFontCss&&this.editor.addFontCss(d,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(d,k),f(d)}catch(u){f(d)}}))}catch(k){f(d)}}))};EditorUi.prototype.exportImage=function(d,f,k,u,z,B,F,K,N,H,ka,ea,ca){N=null!=N?N:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var ja=this.editor.graph.isSelectionEmpty();k=null!=k?k:ja;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,
function(ma){this.spinner.stop();try{this.saveCanvas(ma,z?this.getFileData(!0,null,null,null,k,K):null,N,null==this.pages||0==this.pages.length,ka)}catch(Z){this.handleError(Z)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(ma){this.spinner.stop();this.handleError(ma)}),null,k,d||1,f,u,null,null,B,F,H,ea,ca)}catch(ma){this.spinner.stop(),this.handleError(ma)}}};EditorUi.prototype.isCorsEnabledForUrl=function(d){return this.editor.isCorsEnabledForUrl(d)};EditorUi.prototype.importXml=