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:
var CommentsWindow=function(b,e,f,c,k,m){function u(){for(var N=x.getElementsByTagName("div"),Q=0,P=0;P<N.length;P++)"none"!=N[P].style.display&&N[P].parentNode==x&&Q++;B.style.display=0==Q?"block":"none"}function v(N,Q,P,M){function p(){Q.removeChild(K);Q.removeChild(l);C.style.display="block";y.style.display="block"}n={div:Q,comment:N,saveCallback:P,deleteOnCancel:M};var y=Q.querySelector(".geCommentTxt"),C=Q.querySelector(".geCommentActionsList"),K=document.createElement("textarea");K.className=
"geCommentEditTxtArea";K.style.minHeight=y.offsetHeight+"px";K.value=N.content;Q.insertBefore(K,y);var l=document.createElement("div");l.className="geCommentEditBtns";var z=mxUtils.button(mxResources.get("cancel"),function(){M?(Q.parentNode.removeChild(Q),u()):p();n=null});z.className="geCommentEditBtn";l.appendChild(z);var J=mxUtils.button(mxResources.get("save"),function(){y.innerText="";N.content=K.value;mxUtils.write(y,N.content);p();P(N);n=null});mxEvent.addListener(K,"keydown",mxUtils.bind(this,
function(O){mxEvent.isConsumed(O)||((mxEvent.isControlDown(O)||mxClient.IS_MAC&&mxEvent.isMetaDown(O))&&13==O.keyCode?(J.click(),mxEvent.consume(O)):27==O.keyCode&&(z.click(),mxEvent.consume(O)))}));J.focus();J.className="geCommentEditBtn gePrimaryBtn";l.appendChild(J);Q.insertBefore(l,y);C.style.display="none";y.style.display="none";K.focus()}function E(N,Q){Q.innerText="";N=new Date(N.modifiedDate);var P=b.timeSince(N);null==P&&(P=mxResources.get("lessThanAMinute"));mxUtils.write(Q,mxResources.get("timeAgo",