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