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:
0,0,80,30,"ellipse");E(D)}finally{m.getModel().endUpdate()}if("horizontalTree"==f){var A=new mxCompactTreeLayout(m);A.edgeRouting=!1;A.levelDistance=30;u="edgeStyle=elbowEdgeStyle;elbow=horizontal;"}else"verticalTree"==f?(A=new mxCompactTreeLayout(m,!1),A.edgeRouting=!1,A.levelDistance=30,u="edgeStyle=elbowEdgeStyle;elbow=vertical;"):"radialTree"==f?(A=new mxRadialTreeLayout(m,!1),A.edgeRouting=!1,A.levelDistance=80):"verticalFlow"==f?A=new mxHierarchicalLayout(m,mxConstants.DIRECTION_NORTH):"horizontalFlow"==
f?A=new mxHierarchicalLayout(m,mxConstants.DIRECTION_WEST):"circle"==f?A=new mxCircleLayout(m):(A=new mxFastOrganicLayout(m,!1),A.forceConstant=80);if(null!=A){var L=function(n,q){m.getModel().beginUpdate();try{null!=n&&n(),A.execute(m.getDefaultParent(),D)}catch(t){throw t;}finally{n=new mxMorphing(m),n.addListener(mxEvent.DONE,mxUtils.bind(this,function(){m.getModel().endUpdate();null!=q&&q()})),n.startAnimation()}},H=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(n,q,
t,x,B){H.apply(this,arguments);L()};m.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);L()};m.connectionHandler.addListener(mxEvent.CONNECT,function(){L()})}var d=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){null!=k.parentNode&&(m.destroy(),k.parentNode.removeChild(k));b.hideDialog()})});d.className="geBtn";b.editor.cancelFirst&&c.appendChild(d);var g=mxUtils.button(mxResources.get("insert"),function(n){m.clearCellOverlays();