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 Ma=null,Oa=fa;null!=na?wa.setAttribute("title",mxResources.get(na,null,na)):null!=oa&&0<oa.length&&wa.setAttribute("title",oa);if(null!=ka){wa.style.display="inline-flex";wa.style.justifyContent="center";wa.style.alignItems="center";ia=document.createElement("img");ia.setAttribute("src",ka);ia.setAttribute("alt",oa);ia.style.maxWidth=Fa+"px";ia.style.maxHeight=pa+"px";J=ia;var Xa=ka.replace(".drawio.xml","").replace(".drawio","").replace(".xml","");wa.appendChild(ia);ia.onerror=function(){this.src!=
Xa?this.src=Xa:(this.src=Editor.errorImage,this.onerror=null)};mxEvent.addGestureListeners(wa,mxUtils.bind(this,function(Na){F(wa,null,null,fa,xa,Aa)}),null,null);mxEvent.addListener(wa,"dblclick",function(Na){I();mxEvent.consume(Na)})}else if(!Ja&&null!=fa&&0<fa.length){var Sa=function(Na){K.setAttribute("disabled","disabled");wa.style.backgroundColor="transparent";wa.style.border="1px solid transparent";C.spin(ha);La(fa,function(Ya,Wa){C.stop();null!=Ya&&(F(wa,Ya,ma,null,null,Aa,Wa),Na&&I())})};