Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
function(){null!=t&&(t(),t=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(T,l,n){C=!1;if(null!=T){if("data:image/"==T.substring(0,11)){var z=T.indexOf(",");0<z&&(T=T.substring(0,z)+";base64,"+T.substring(z+1))}F(T,null,0,0,l,n);c.scrollTop=c.scrollHeight}})});f.setAttribute("id","btnAddImageUrl");f.className="geBtn";d.appendChild(f);this.saveBtnClickHandler=function(T,l,n,z){b.saveLibrary(T,l,n,z)};f=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=t&&