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,S)}});/(\.v(dx|sdx?))($|\?)/i.test(S.name)||/(\.vs(x|sx?))($|\?)/i.test(S.name)?t(null,S.type,g+V*l,n+V*l,240,160,S.name,function(Z){T(V,function(){return Z})},S):"image"==S.type.substring(0,5)||"application/pdf"==S.type?X.readAsDataURL(S):X.readAsText(S)}})(W)});if(M){M=[];for(y=0;y<d.length;y++)M.push(d[y]);d=M;this.confirmImageResize(function(K){P=K;C()},I)}else C()};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(d,g){g=null!=g?g:!1;var n=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},q=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,t=function(x,B){if(x||g)mxSettings.setResizeImages(x?B:null),mxSettings.save();n();d(B)};null==q||g?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(x){t(x,