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,"geBtn");b.editor.cancelFirst&&H.appendChild(d);null!=g&&H.appendChild(g);H.appendChild(N);b.editor.cancelFirst||H.appendChild(d);L.appendChild(H);this.init=function(){Editor.selectFilename(t)};this.container=L},CreateDialog=function(b,e,f,c,k,m,u,v,E,D,A,L,H,d,g,n,q){function t(N,Q,P,M){function p(){mxEvent.addListener(y,"click",function(){var J=P;if(u){var O=G.value,T=O.lastIndexOf(".");if(0>e.lastIndexOf(".")&&0>T){J=null!=J?J:R.value;var W="";J==App.MODE_GOOGLE?W=b.drive.extension:J==App.MODE_GITHUB?
W=b.gitHub.extension:J==App.MODE_GITLAB?W=b.gitLab.extension:J==App.MODE_TRELLO?W=b.trello.extension:J==App.MODE_DROPBOX?W=b.dropbox.extension:J==App.MODE_ONEDRIVE?W=b.oneDrive.extension:J==App.MODE_DEVICE&&(W=".drawio");0<=T&&(O=O.substring(0,T));G.value=O+W}}x(P)})}var y=document.createElement("a");y.style.overflow="hidden";var C=document.createElement("img");C.src=N;C.setAttribute("border","0");C.setAttribute("align","absmiddle");C.style.width="60px";C.style.height="60px";C.style.paddingBottom=
"6px";y.style.display="inline-block";y.className="geBaseButton";y.style.position="relative";y.style.margin="4px";y.style.padding="8px 8px 10px 8px";y.style.whiteSpace="nowrap";y.appendChild(C);y.style.color="gray";y.style.fontSize="11px";var K=document.createElement("div");y.appendChild(K);mxUtils.write(K,Q);if(null!=M&&null==b[M]){C.style.visibility="hidden";mxUtils.setOpacity(K,10);var l=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,
top:"40%",zIndex:2E9});l.spin(y);var z=window.setTimeout(function(){null==b[M]&&(l.stop(),y.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[M]&&(window.clearTimeout(z),mxUtils.setOpacity(K,100),C.style.visibility="",l.stop(),p())}))}else p();F.appendChild(y);++U==L&&(mxUtils.br(F),U=0)}function x(N){var Q=G.value;if(null==N||null!=Q&&0<Q.length)q&&b.hideDialog(),f(Q,N,G)}A="1"==urlParams.noDevice?!1:A;u=null!=u?u:!0;v=null!=v?v:!0;L=null!=L?L:4;q=null!=