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:
g[x[F][Q]];null!=S?""!=S&&M.push(S):M.push(x[F][Q])}x[F]=M}};Graph.prototype.getCellsForAction=function(g,x){x=this.getCellsById(g.cells).concat(this.getCellsForTags(g.tags,null,x));if(null!=g.excludeCells){for(var F=[],M=0;M<x.length;M++)0>g.excludeCells.indexOf(x[M].id)&&F.push(x[M]);x=F}return x};Graph.prototype.getCellsById=function(g){var x=[];if(null!=g)for(var F=0;F<g.length;F++)if("*"==g[F]){var M=this.model.getRoot();x=x.concat(this.model.filterDescendants(function(S){return S!=M},M))}else{var Q=
this.model.getCell(g[F]);null!=Q&&x.push(Q)}return x};var N=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(g){return N.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(g))};Graph.prototype.setHiddenTags=function(g){this.hiddenTags=g;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(g){var x=mxUtils.indexOf(this.hiddenTags,g);0>x?this.hiddenTags.push(g):0<=x&&this.hiddenTags.splice(x,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};