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:
new Uint8Array(N)}return new Blob(z,{type:f})};EditorUi.prototype.saveLocalFile=function(d,f,k,u,z,B,F,K){B=null!=B?B:!1;F=null!=F?F:"vsdx"!=z&&(!mxClient.IS_IOS||!navigator.standalone);var N=mxUtils.bind(this,function(ka,ea,ca,ja){try{if("_blank"==ea)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(d,k,u);else if(null!=k&&"text/html"==k.substring(0,9)){var ma=new EmbedDialog(this,d);this.showDialog(ma.container,450,240,!0,!0);ma.init()}else{var Z=window.open("about:blank");null==Z?mxUtils.popup(d,
!0):(Z.document.write("<pre>"+mxUtils.htmlEntities(d,!1)+"</pre>"),Z.document.close())}else if(ea==App.MODE_DEVICE||"download"==ea)this.doSaveLocalFile(d,ka,k,u,null,K);else if(null!=ka&&0<ka.length){var S=mxUtils.bind(this,function(da){try{this.exportFile(d,ka,k,u,ea,da)}catch(P){this.handleError(P)}});null!=ja?S(ja):this.pickFolder(ea,S)}}catch(da){this.handleError(da)}});if("1"==urlParams["save-dialog"])z=[],B||z.push(App.MODE_BROWSER),F||z.push("_blank"),f=new SaveDialog(this,f,mxUtils.bind(this,
function(ka,ea,ca){N(ka.value,ea,ka,ca);this.hideDialog()}),z,d,k,u),this.showDialog(f.container,420,100,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));else{z=this.getServiceCount(B);isLocalStorage&&z++;var H=4>=z?2:6<z?4:3;f=new CreateDialog(this,f,N,mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,B,F,null,1<z,H,d,k,u);B=this.isServices(z)?z>H?390:280:160;this.showDialog(f.container,420,B,!0,!0)}f.init()};EditorUi.prototype.openInNewWindow=