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:
function(d){if(("simple"==d||"sketch"==d)&&null==this.sketchMainMenuElt){this.sketchMainMenuElt=document.createElement("div");this.sketchMainMenuElt.style.cssText="position:absolute;padding:9px 12px;overflow:hidden;white-space:nowrap;user-select:none;box-sizing:border-box;";var f=this.createMenu("simple"==d?"view":"diagram","simple"==d?Editor.thinViewImage:Editor.menuImage);this.sketchMainMenuElt.appendChild(f);"simple"==d?(this.sketchMainMenuElt.className="geToolbarContainer geSimpleMainMenu",this.sketchMainMenuElt.style.display=
"flex",this.sketchMainMenuElt.style.height="52px",this.sketchMainMenuElt.style.justifyContent="start",this.sketchMainMenuElt.style.alignItems="center",this.sketchMainMenuElt.style.top="0px",this.sketchMainMenuElt.style.left="0px",this.sketchMainMenuElt.style.right="0px",this.sketchMainMenuElt.style.gap="10px",f.style.flexShrink="0",f.style.opacity="0.7"):(this.sketchMainMenuElt.appendChild(this.createMenuItem("delete",Editor.trashImage)),this.sketchMainMenuElt.appendChild(this.createMenuItem("undo",
Editor.undoImage)),this.sketchMainMenuElt.appendChild(this.createMenuItem("redo",Editor.redoImage)),this.sketchMainMenuElt.className="geToolbarContainer",this.sketchMainMenuElt.style.borderRadius="4px",this.sketchMainMenuElt.style.height="44px",this.sketchMainMenuElt.style.left="10px",this.sketchMainMenuElt.style.top="10px",this.sketchMainMenuElt.style.zIndex="1");this.sketchWrapperElt.appendChild(this.sketchMainMenuElt)}};EditorUi.prototype.isPageMenuVisible=function(){return null!=this.pages&&("0"!=