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:
z.style.backgroundSize="100% 100%";z.style.display="inline-block";z.style.cursor="pointer";z.style.marginLeft="6px";z.style.width=u+"px";z.style.height=u+"px";null!=k&&(mxEvent.addListener(z,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(B){B.preventDefault()})),mxEvent.addListener(z,"click",function(B){"disabled"!=z.getAttribute("disabled")&&k(B);mxEvent.consume(B)}));return z};EditorUi.prototype.createMenuItem=function(d,f,k){var u=this.actions.get(d),z=null!=u?u.funct:
null,B=this.createToolbarButton(f,mxResources.get(d)+(null!=u&&null!=u.shortcut?" ("+u.shortcut+")":""),z);null==u||k||(d=function(){u.isEnabled()?(B.removeAttribute("disabled"),B.style.cursor="pointer"):(B.setAttribute("disabled","disabled"),B.style.cursor="default");B.style.opacity=u.isEnabled()?"":"0.2"},this.editor.graph.addListener("enabledChanged",d),u.addListener("stateChanged",d),d());return B};EditorUi.prototype.createFormatWindow=function(){if(null==this.formatWindow){var d=Math.max(10,