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:
"chrome-extension://"==Z.substring(0,19)||mxClient.IS_CHROMEAPP||(Z=B.apply(this,arguments)):Z=PROXY_URL+"?url="+encodeURIComponent(Z)}return Z};return l};Editor.createSvgDataUri=function(l){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(l)))};Editor.prototype.convertImageToDataUri=function(l,B){try{var N=!0,Z=window.setTimeout(mxUtils.bind(this,function(){N=!1;B(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(l))mxUtils.get(l,mxUtils.bind(this,function(aa){window.clearTimeout(Z);
N&&B(Editor.createSvgDataUri(aa.getText()))}),function(){window.clearTimeout(Z);N&&B(Editor.svgBrokenImage.src)});else{var U=new Image;this.crossOriginImages&&(U.crossOrigin="anonymous");U.onload=function(){window.clearTimeout(Z);if(N)try{var aa=document.createElement("canvas"),Y=aa.getContext("2d");aa.height=U.height;aa.width=U.width;Y.drawImage(U,0,0);B(aa.toDataURL())}catch(ka){B(Editor.svgBrokenImage.src)}};U.onerror=function(){window.clearTimeout(Z);N&&B(Editor.svgBrokenImage.src)};U.src=l}}catch(aa){B(Editor.svgBrokenImage.src)}};