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:
mxEvent.consume(ba)))}}catch(P){d.handleError(P)}mxEvent.isConsumed(ba)||G.apply(this,arguments)};var ja=f.connectVertex;f.connectVertex=function(ba,S,da,P,V,l,B){var N=f.getIncomingTreeEdges(ba);if(p(ba)){var Z=M(ba),U=Z==mxConstants.DIRECTION_EAST||Z==mxConstants.DIRECTION_WEST,aa=S==mxConstants.DIRECTION_EAST||S==mxConstants.DIRECTION_WEST;return Z==S||0==N.length?K(ba,S):U==aa?F(ba):T(ba,S!=mxConstants.DIRECTION_NORTH&&S!=mxConstants.DIRECTION_WEST)}return ja.apply(this,arguments)};f.getSubtree=