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:
}finally{g.getModel().endUpdate()}x&&(g.setSelectionCell(n),g.scrollCellToVisible(n))}};f=mxUtils.button(mxResources.get("preview"),function(){d(A,L,!1)});f.className="geBtn";E.appendChild(f);f=mxUtils.button(mxResources.get("apply"),function(){d(b.editor.graph,e,!0)});f.className="geBtn gePrimaryBtn";E.appendChild(f);b.editor.cancelFirst||E.appendChild(k);v.appendChild(E);u.appendChild(v);m.appendChild(u);this.container=m},CustomDialog=function(b,e,f,c,k,m,u,v,E,D,A,L){var H=document.createElement("div");
H.appendChild(e);var d=document.createElement("div");d.style.marginTop=null!=L?L:"30px";d.style.textAlign="center";null!=u&&d.appendChild(u);b.isOffline()||null==m||(e=mxUtils.button(mxResources.get("help"),function(){b.openLink(m)}),e.className="geBtn",d.appendChild(e));E=mxUtils.button(E||mxResources.get("cancel"),function(){b.hideDialog();null!=c&&c()});E.className="geBtn";v&&(E.style.display="none");b.editor.cancelFirst&&d.appendChild(E);k=mxUtils.button(k||mxResources.get("ok"),mxUtils.bind(this,
function(){D||b.hideDialog(null,null,this.container);if(null!=f){var g=f();if("string"===typeof g){b.showError(mxResources.get("error"),g);return}}D&&b.hideDialog(null,null,this.container)}));d.appendChild(k);k.className="geBtn gePrimaryBtn";b.editor.cancelFirst||d.appendChild(E);if(null!=A)for(v=0;v<A.length;v++)(function(g,n,q){g=mxUtils.button(g,function(t){n(t)});null!=q&&g.setAttribute("title",q);g.className="geBtn";d.appendChild(g)})(A[v][0],A[v][1],A[v][2]);H.appendChild(d);this.cancelBtn=
E;this.okButton=k;this.container=H},TemplatesDialog=function(b,e,f,c,k,m,u,v,E,D,A,L,H,d,g){function n(ja){ta.innerText=ja;ta.style.display="block";setTimeout(function(){ta.style.display="none"},4E3)}function q(){null!=z&&(z.style.fontWeight="normal",z.style.textDecoration="none",J=z,z=null)}function t(ja,fa,ma,na,oa,ia,ka){if(-1<ja.className.indexOf("geTempDlgRadioBtnActive"))return!1;ja.className+=" geTempDlgRadioBtnActive";C.querySelector(".geTempDlgRadioBtn[data-id="+na+"]").className="geTempDlgRadioBtn "+