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:
else{t=this.getServiceCount(x);isLocalStorage&&t++;var F=4>=t?2:6<t?4:3;g=new CreateDialog(this,g,I,mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,x,B,null,1<t,F,d,n,q);x=this.isServices(t)?t>F?390:280:160;this.showDialog(g.container,420,x,!0,!0)}g.init()};EditorUi.prototype.openInNewWindow=function(d,g,n){var q=window.open("about:blank");null==q||null==q.document?mxUtils.popup(d,!0):("image/svg+xml"!=g||mxClient.IS_SVG?"image/svg+xml"!=g||
n?(d=n?d:btoa(unescape(encodeURIComponent(d))),q.document.write('<html><img style="max-width:100%;" src="data:'+g+";base64,"+d+'"/></html>')):q.document.write("<html>"+d+"</html>"):q.document.write("<html><pre>"+mxUtils.htmlEntities(d,!1)+"</pre></html>"),q.document.close())};var c=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};