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:
function(){null!=x&&(x(),x=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(U,R,N){G=!1;if(null!=U){if("data:image/"==U.substring(0,11)){var Q=U.indexOf(",");0<Q&&(U=U.substring(0,Q)+";base64,"+U.substring(Q+1))}v(U,null,0,0,R,N);d.scrollTop=d.scrollHeight}})});e.setAttribute("id","btnAddImageUrl");e.className="geBtn";c.appendChild(e);this.saveBtnClickHandler=function(U,R,N,Q){b.saveLibrary(U,R,N,Q)};e=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=x&&