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