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:
DrawioFile.prototype.updateFile=function(b,e,f,c,k){null!=f&&f()||(EditorUi.debug("DrawioFile.updateFile",[this],"immediate",k,"invalidChecksum",this.invalidChecksum),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():this.getLatestVersion(mxUtils.bind(this,function(m){try{null!=f&&f()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[m]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():null!=m?this.mergeFile(m,b,e,
c,k):this.reloadFile(b,e))}catch(u){null!=e&&e(u)}}),e))};