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:
null!=window.console&&console.error(ha,T)}});/(\.v(dx|sdx?))($|\?)/i.test(T.name)||/(\.vs(x|sx?))($|\?)/i.test(T.name)?p(null,T.type,e+W*g,k+W*g,240,160,T.name,function(Z){Q(W,function(){return Z})},T):"image"==T.type.substring(0,5)||"application/pdf"==T.type?X.readAsDataURL(T):X.readAsText(T)}})(S)});if(H){H=[];for(v=0;v<c.length;v++)H.push(c[v]);c=H;this.confirmImageResize(function(I){N=I;A()},G)}else A()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&
this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(c,e){e=null!=e?e:!1;var k=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},n=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,p=function(t,y){if(t||e)mxSettings.setResizeImages(t?y:null),mxSettings.save();k();c(y)};null==n||e?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(t){p(t,