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:
"simple"==Editor.currentTheme&&this.addMenuItems(A,["-","exitGroup","home"],null,g)};var B=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(A,I,g){if(c.editor.graph.isSelectionEmpty())B.apply(this,arguments),c.menus.addMenuItems(A,["copyAsImage"],null,g);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(A,I,g):this.addPopupMenuArrangeItems(A,I,g),this.addMenuItems(A,"- cut copy copyAsImage duplicate -".split(" "),null,g),this.isShowCellEditItems()||this.addPopupDeleteItem(A,
I,g),this.addMenuItems(A,["lockUnlock","-"],null,g),!this.isShowStyleItems()){if(1==e.getSelectionCount()&&!e.isCellLocked(I)&&e.isCellEditable(I)&&(this.addSubmenu("editCell",A,null,mxResources.get("edit")),A.addSeparator(),e.getModel().isEdge(I))){this.addSubmenu("line",A);var x=e.getModel().getGeometry(I);null!=x&&null!=x.points&&0<x.points.length&&this.addMenuItems(A,["clearWaypoints"],null,g)}1==e.getSelectionCount()&&this.addMenuItems(A,["enterGroup"],null,g);x=c.getSelectionState();null!=x.mergeCell?
this.addMenuItem(A,"mergeCells"):(1<x.style.colspan||1<x.style.rowspan)&&this.addMenuItem(A,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems=function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}c.actions.get("print").funct=function(){c.showDialog((new PrintDialog(c)).container,