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:
document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(d,g){d=new TextareaDialog(this,d,g,null,null,mxResources.get("close"));this.showDialog(d.container,620,460,!0,!0,null,null,null,null,!0);d.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(d,g,n,t,u,v){"text/xml"!=n||/(\.drawio)$/i.test(g)||/(\.xml)$/i.test(g)||/(\.svg)$/i.test(g)||/(\.html)$/i.test(g)||(g=g+"."+(null!=v?v:"drawio"));
if(window.Blob&&navigator.msSaveOrOpenBlob)d=t?this.base64ToBlob(d,n):new Blob([d],{type:n}),navigator.msSaveOrOpenBlob(d,g);else if(mxClient.IS_IE)n=window.open("about:blank","_blank"),null==n?mxUtils.popup(d,!0):(n.document.write(d),n.document.close(),n.document.execCommand("SaveAs",!0,g),n.close());else if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==n||"image/"!=n.substring(0,6)?this.showTextDialog(g+":",d):this.openInNewWindow(d,n,t);else{var B=document.createElement("a");v=
(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&"undefined"!==typeof B.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var H=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);v=65==(H?parseInt(H[2],10):!1)?!1:v}if(v||this.isOffline()){B.href=URL.createObjectURL(t?this.base64ToBlob(d,n):new Blob([d],{type:n}));v?B.download=g:B.setAttribute("target","_blank");document.body.appendChild(B);try{window.setTimeout(function(){URL.revokeObjectURL(B.href)},2E4),B.click(),
B.parentNode.removeChild(B)}catch(L){}}else this.createEchoRequest(d,g,n,t,u).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(d,g,n,t,u,v){d="xml="+encodeURIComponent(d);return new mxXmlRequest(SAVE_URL,d+(null!=n?"&mime="+n:"")+(null!=u?"&format="+u:"")+(null!=v?"&base64="+v:"")+(null!=g?"&filename="+encodeURIComponent(g):"")+(t?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(d,g){g=g||"";d=atob(d);for(var n=d.length,t=Math.ceil(n/1024),u=Array(t),v=0;v<t;++v){for(var B=