Language: JavaScript
Label: vulnerable
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:
e.appendChild(l);this.pagesContainer=f;this.layersContainer=l;this.ui=b;f=document.createElement("div");f.style.marginTop="16px";f.style.textAlign="center";l=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=k&&k()});l.className="geBtn";b.editor.cancelFirst&&f.appendChild(l);var u=mxUtils.button(mxResources.get("ok"),mxUtils.bind(this,function(){b.hideDialog();c({pageId:this.selectedPage,layerIds:Object.keys(this.selectedLayers)})}));f.appendChild(u);u.className="geBtn gePrimaryBtn";