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:
g.dialogs||0==g.dialogs.length)};y.isControlDown=function(R){return mxEvent.isControlDown(R)||mxClient.IS_MAC&&R.metaKey};var E=null,L={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},T=y.getFunction;mxKeyHandler.prototype.getFunction=function(R){if(p.isEnabled()){if(mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)){var W=g.actions.get(g.altShiftActions[R.keyCode]);if(null!=W)return W.funct}if(null!=L[R.keyCode]&&!p.isSelectionEmpty())if(!this.isControlDown(R)&&
mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)){if(p.model.isVertex(p.getSelectionCell()))return function(){var d=p.connectVertex(p.getSelectionCell(),L[R.keyCode],p.defaultEdgeLength,R,!0);null!=d&&0<d.length&&(1==d.length&&p.model.isEdge(d[0])?p.setSelectionCell(p.model.getTerminal(d[0],!1)):p.setSelectionCell(d[d.length-1]),p.scrollCellToVisible(p.getSelectionCell()),null!=g.hoverIcons&&g.hoverIcons.update(p.view.getState(p.getSelectionCell())))}}else return this.isControlDown(R)?function(){e(R.keyCode,
mxEvent.isShiftDown(R)?p.gridSize:null,!0)}:function(){e(R.keyCode,mxEvent.isShiftDown(R)?p.gridSize:null)}}return T.apply(this,arguments)};y.bindAction=mxUtils.bind(this,function(R,W,d,f){var k=this.actions.get(d);null!=k&&(d=function(){k.isEnabled()&&k.funct.apply(this,arguments)},W?f?y.bindControlShiftKey(R,d):y.bindControlKey(R,d):f?y.bindShiftKey(R,d):y.bindKey(R,d))});var G=this,M=y.escape;y.escape=function(R){M.apply(this,arguments)};y.enter=function(){};y.bindControlShiftKey(36,function(){p.exitGroup()});