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:
f.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(f.clearAutosave(),this.editor.setStatus(""),d?f.reloadFile(mxUtils.bind(this,function(){f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){f.handleFileError(k,!0)})):f.synchronizeFile(mxUtils.bind(this,function(){f.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){f.handleFileError(k,!0)}))))};EditorUi.prototype.getFileData=function(d,f,k,u,z,B,F,
K,N,H,ka){z=null!=z?z:!0;B=null!=B?B:!1;H=null!=H?H:!Editor.defaultCompressed;var ea=this.editor.graph;if(f||!d&&null!=N&&/(\.svg)$/i.test(N.getTitle())){var ca=null!=ea.themes&&"darkTheme"==ea.defaultThemeName;if(ca||null!=this.pages&&this.currentPage!=this.pages[0]){var ja=ea.getGlobalVariable;ea=this.createTemporaryGraph(ca?ea.getDefaultStylesheet():ea.getStylesheet());ea.setBackgroundImage=this.editor.graph.setBackgroundImage;ea.background=this.editor.graph.background;var ma=null!=this.pages?
this.pages[0]:null;null==ma||this.currentPage==ma?ea.setBackgroundImage(this.editor.graph.backgroundImage):null!=ma.viewState&&null!=ma.viewState&&ea.setBackgroundImage(ma.viewState.backgroundImage);ea.getGlobalVariable=function(Z){return"page"==Z&&null!=ma?ma.getName():"pagenumber"==Z?1:ja.apply(this,arguments)};document.body.appendChild(ea.container);null!=ma&&ea.model.setRoot(ma.root)}}F=null!=F?F:this.getXmlFileData(z,B,H,ka);N=null!=N?N:this.getCurrentFile();d=this.createFileData(F,ea,N,window.location.href,
d,f,k,u,z,K,H);ea!=this.editor.graph&&ea.container.parentNode.removeChild(ea.container);return d};EditorUi.prototype.getHtml=function(d,f,k,u,z,B){B=null!=B?B:!0;var F=null,K=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=f){F=B?f.getGraphBounds():f.getBoundingBox(f.getSelectionCells());var N=f.view.scale;B=Math.floor(F.x/N-f.view.translate.x);N=Math.floor(F.y/N-f.view.translate.y);F=f.background;null==z&&(f=this.getBasenames().join(";"),0<f.length&&(K=EditorUi.drawHost+"/embed.js?s="+f));d.setAttribute("x0",