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:
F[C].destroyed?(F[C]=l,x[C]=!0,EditorUi.debug("P2PCollab: p2p socket connected",C)):(l.noP2PMapDel=!0,l.destroy(),EditorUi.debug("P2PCollab: p2p socket duplicate",C))});l.on("close",function(){l.noP2PMapDel||(EditorUi.debug("P2PCollab: p2p socket closed",C),D(t[C]),delete F[C])});l.on("data",u);return I[C]=l}}function E(C,K){D(K||t[C]);null!=C&&(delete t[C],x[C]=!1)}function D(C){var K=g[C];if(null!=K){var l=K.selection,z;for(z in l)null!=l[z]&&l[z].destroy();null!=K.cursor&&null!=K.cursor.parentNode&&
K.cursor.parentNode.removeChild(K.cursor);clearTimeout(K.inactiveTO);delete g[C]}}var A=b.editor.graph,L=0,H=null,d="#e6194b #3cb44b #4363d8 #f58231 #911eb4 #f032e6 #469990 #9A6324 #800000 #808000 #000075 #a9a9a9 #ffe119 #42d4f4 #bfef45 #fabed4 #dcbeff #fffac8 #aaffc3 #ffd8b1".split(" "),g={},n=1,q={},t={},x={},B={},G,I={},F={},U=!0,R=!1,N=!1,Q="0"!=urlParams["no-p2p"],P=!1,M=0,p=null,y=mxUtils.bind(this,function(C,K){if(!N)try{null!=H?(H.send(JSON.stringify({action:C,msg:K})),Q||EditorUi.debug("P2PCollab: sending to socket server",