Language: JavaScript
Label: vulnerable
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:
z);EditorUi.debug("P2PCollab: error socket on",L.joinId);N||M!=L.joinId||(R==M&&(EditorUi.debug("P2PCollab: joinInProgress in error on",L.joinId),R=!1),m||(EditorUi.debug("P2PCollab: calling rejoin on",L.joinId),m=!0,this.joinFile(!0)));e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}));e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}catch(z){p=z,e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}};this.destroy=function(){if(!N){EditorUi.debug("P2PCollab: destroyed");
N=!0;for(sessionId in g)D(sessionId);null!=this.mouseListeners&&A.removeMouseListener(this.mouseListeners);null!=this.selectionChangeListener&&A.getSelectionModel().removeListener(this.selectionChangeListener);null!=this.shareCursorPositionListener&&b.removeListener(this.shareCursorPositionListener);null!=this.cursorHandler&&(mxEvent.removeListener(A.container,"scroll",this.cursorHandler),A.getView().removeListener(mxEvent.SCALE,this.cursorHandler),A.getView().removeListener(mxEvent.TRANSLATE,this.cursorHandler),
A.getView().removeListener(mxEvent.SCALE_AND_TRANSLATE,this.cursorHandler),b.editor.removeListener("pageSelected",this.cursorHandler),b.removeListener(this.cursorHandler));null!=H&&1<=H.readyState&&(H.close(1E3),H=null);for(var C in G)null!=G[C]&&G[C].destroy();e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}}};