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;g<this.pages.length;g++)this.updatePageRoot(this.pages[g]),this.addBasenamesForCell(this.pages[g].root,d);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),d);g=[];for(var n in d)g.push(n);return g};EditorUi.prototype.addBasenamesForCell=function(d,g){function n(B){if(null!=B){var G=B.lastIndexOf(".");0<G&&(B=B.substring(G+1,B.length));null==g[B]&&(g[B]=!0)}}var q=this.editor.graph,t=q.getCellStyle(d);n(mxStencilRegistry.getBasenameForStencil(t[mxConstants.STYLE_SHAPE]));q.model.isEdge(d)&&
(n(mxMarker.getPackageForType(t[mxConstants.STYLE_STARTARROW])),n(mxMarker.getPackageForType(t[mxConstants.STYLE_ENDARROW])));t=q.model.getChildCount(d);for(var x=0;x<t;x++)this.addBasenamesForCell(q.model.getChildAt(d,x),g)};EditorUi.prototype.setGraphEnabled=function(d){this.diagramContainer.style.visibility=d?"":"hidden";this.formatContainer.style.visibility=d?"":"hidden";this.sidebarContainer.style.display=d?"":"none";this.hsplit.style.display=d&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme?