Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
App.prototype.pickFolder=function(b,f,m,d,u){m=null!=m?m:!0;var v=this.spinner.pause();m&&b==App.MODE_GOOGLE&&null!=this.drive?this.drive.pickFolder(mxUtils.bind(this,function(D){v();if(D.action==google.picker.Action.PICKED){var F=null;null!=D.docs&&0<D.docs.length&&"folder"==D.docs[0].type&&(F=D.docs[0].id);f(F)}}),u):m&&b==App.MODE_ONEDRIVE&&null!=this.oneDrive?this.oneDrive.pickFolder(mxUtils.bind(this,function(D){v();null!=D&&null!=D.value&&0<D.value.length&&(D=OneDriveFile.prototype.getIdOf(D.value[0]),
f(D))}),d):m&&b==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.pickFolder(mxUtils.bind(this,function(D){v();f(D)})):m&&b==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.pickFolder(mxUtils.bind(this,function(D){v();f(D)})):m&&b==App.MODE_TRELLO&&null!=this.trello?this.trello.pickFolder(mxUtils.bind(this,function(D){v();f(D)})):EditorUi.prototype.pickFolder.apply(this,arguments)};