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:
x?x.checked:null,v.value,"embedFonts"==W.value,"lblToSvg"==W.value)}),null,k,n);this.showDialog(k.container,340,R,!0,!0,null,null,null,null,!0);P.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?P.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,e,k,n,p){var t=document.createElement("div");t.style.whiteSpace="nowrap";var y=this.editor.graph;if(null!=e){var C=document.createElement("h3");mxUtils.write(C,e);C.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";
t.appendChild(C)}var G=this.addCheckbox(t,mxResources.get("fit"),!0),B=this.addCheckbox(t,mxResources.get("shadow"),y.shadowVisible&&n,!n),V=this.addCheckbox(t,k),R=this.addCheckbox(t,mxResources.get("lightbox"),!0),O=this.addEditButton(t,R),P=O.getEditInput(),N=1<y.model.getChildCount(y.model.getRoot()),H=this.addCheckbox(t,mxResources.get("layers"),N,!N);H.style.marginLeft=P.style.marginLeft;H.style.marginBottom="12px";H.style.marginTop="8px";mxEvent.addListener(R,"change",function(){R.checked?
(N&&H.removeAttribute("disabled"),P.removeAttribute("disabled")):(H.setAttribute("disabled","disabled"),P.setAttribute("disabled","disabled"));P.checked&&R.checked?O.getEditSelect().removeAttribute("disabled"):O.getEditSelect().setAttribute("disabled","disabled")});e=new CustomDialog(this,t,mxUtils.bind(this,function(){c(G.checked,B.checked,V.checked,R.checked,O.getLink(),H.checked)}),null,mxResources.get("embed"),p);this.showDialog(e.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=