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:
P==App.MODE_GITLAB)&&null!=N&&0<N.length&&(H={mode:P,path:decodeURIComponent(N),id:N});null!=H&&(C.style.display="",b.addRecent(H,"Folders"),N=D(H.mode,H.path,H.id,!0),N.parentNode.firstChild!=N&&N.parentNode.insertBefore(N,N.parentNode.firstChild),null!=B&&(B.parentNode.removeChild(B),V=N.getAttribute("value"),y.value=V,B=null,E()))},!0,!0,!0,!0)}function K(){var P=b.getRecent("Folders");if(null!=P&&0<P.length){for(var N=0;N<P.length;N++)D(P[N].mode,P[N].path,P[N].id);C.style.display=""}else C.style.display=
"none";D(App.MODE_GOOGLE,mxResources.get("myDrive"),"root",null,null,"root");D(App.MODE_GOOGLE,null,null,null,null,"pick");null!=b.oneDrive&&(D(App.MODE_ONEDRIVE,mxResources.get("myFiles"),OneDriveFile.prototype.getIdOf(b.oneDrive.rootId),null,null,"root"),D(App.MODE_ONEDRIVE,null,null,null,null,"pick"));null!=b.dropbox&&D(App.MODE_DROPBOX,"Apps"+b.dropbox.appPath);D(App.MODE_GITHUB,null,null,null,null,"pick");D(App.MODE_GITLAB,null,null,null,null,"pick");D(App.MODE_TRELLO);P=!Editor.useLocalStorage||
"device"==urlParams.storage||null!=b.getCurrentFile()&&"1"!=urlParams.noDevice;EditorUi.nativeFileSupport&&P&&D(App.MODE_DEVICE,null,null,b.mode==App.MODE_DEVICE||null!=d&&0<=mxUtils.indexOf(d,App.MODE_BROWSER)?!0:null);isLocalStorage&&"0"!=urlParams.browser&&D(App.MODE_BROWSER);P&&D("download");Editor.popupsAllowed&&D("_blank",null,null,null,mxResources.get("openInNewWindow"));y.appendChild(C);if("pickFolder-"==y.value.substring(0,11)||"reset"==y.value)B=document.createElement("option"),B.setAttribute("value",
""),B.setAttribute("selected","selected"),mxUtils.write(B,mxResources.get("pickFolder")+"..."),y.insertBefore(B,y.firstChild);V=y.value}function E(){if("reset"==y.value)b.resetRecent("Folders"),y.innerHTML="",R={},K();else if("pickFolder-"==y.value.substring(0,11)){var P=y.value.substring(11);y.value=V;L(P)}else if(null!=t&&null!=R[y.value]&&null!=b.editor.diagramFileTypes&&"drawio"==b.editor.diagramFileTypes[t.value].extension){P=b.getExtensionForService(R[y.value].mode);var N=p.value;null!=P&&0>