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]),function(){k(!0)},function(){k(!1)})):(this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){k(!1)}))}),function(u){k(!1)},!0)};OneDriveClient.prototype.saveFile=function(e,f,c,k){try{var m=e.getData(),u=mxUtils.bind(this,function(E){var D=mxUtils.bind(this,function(L){f(L,m)}),A=this.getItemURL(e.getId());4E6<=E.length?this.writeLargeFile(A,E,D,c,k):this.writeFile(A+"/content/",E,"PUT",null,D,c,k)});if(this.ui.useCanvasForExport&&
/(\.png)$/i.test(e.meta.name)){var v=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(E){u(this.ui.base64ToBlob(E,"image/png"))}),c,this.ui.getCurrentFile()!=e?m:null,v.scale,v.border)}else u(m)}catch(E){c(E)}};OneDriveClient.prototype.writeLargeFile=function(e,f,c,k,m){try{if(null!=f){var u=(new TextEncoder).encode(f).length,v=mxUtils.bind(this,function(D,A,L,H){try{H=H||0;var d=!0,g=null;g=window.setTimeout(mxUtils.bind(this,function(){d=!1;k({code:App.ERROR_TIMEOUT})}),