Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
this.editor.setStatus(""),d?g.reloadFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(n){g.handleFileError(n,!0)})):g.synchronizeFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(n){g.handleFileError(n,!0)}))))};EditorUi.prototype.getFileData=function(d,g,n,t,u,v,B,H,L,G,T){u=null!=u?u:!0;v=null!=v?v:!1;G=null!=G?G:!Editor.defaultCompressed;var p=this.editor.graph;if(g||!d&&null!=
L&&/(\.svg)$/i.test(L.getTitle())){var q=null!=p.themes&&"darkTheme"==p.defaultThemeName;if(q||null!=this.pages&&this.currentPage!=this.pages[0]){var C=p.getGlobalVariable;p=this.createTemporaryGraph(q?p.getDefaultStylesheet():p.getStylesheet());p.setBackgroundImage=this.editor.graph.setBackgroundImage;p.background=this.editor.graph.background;var J=null!=this.pages?this.pages[0]:null;null==J||this.currentPage==J?p.setBackgroundImage(this.editor.graph.backgroundImage):null!=J.viewState&&null!=J.viewState&&
p.setBackgroundImage(J.viewState.backgroundImage);p.getGlobalVariable=function(F){return"page"==F&&null!=J?J.getName():"pagenumber"==F?1:C.apply(this,arguments)};document.body.appendChild(p.container);null!=J&&p.model.setRoot(J.root)}}B=null!=B?B:this.getXmlFileData(u,v,G,T);L=null!=L?L:this.getCurrentFile();d=this.createFileData(B,p,L,window.location.href,d,g,n,t,u,H,G);p!=this.editor.graph&&p.container.parentNode.removeChild(p.container);return d};EditorUi.prototype.getHtml=function(d,g,n,t,u,v){v=