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:
g.baseUrl||H.crossOriginImages&&H.isCorsEnabledForUrl(O)?"chrome-extension://"==O.substring(0,19)||mxClient.IS_CHROMEAPP||(O=y.apply(this,arguments)):O=PROXY_URL+"?url="+encodeURIComponent(O)}return O};return g};Editor.createSvgDataUri=function(g){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(g)))};Editor.prototype.convertImageToDataUri=function(g,y){try{var H=!0,O=window.setTimeout(mxUtils.bind(this,function(){H=!1;y(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(g))mxUtils.get(g,
mxUtils.bind(this,function(V){window.clearTimeout(O);H&&y(Editor.createSvgDataUri(V.getText()))}),function(){window.clearTimeout(O);H&&y(Editor.svgBrokenImage.src)});else{var P=new Image;this.crossOriginImages&&(P.crossOrigin="anonymous");P.onload=function(){window.clearTimeout(O);if(H)try{var V=document.createElement("canvas"),R=V.getContext("2d");V.height=P.height;V.width=P.width;R.drawImage(P,0,0);y(V.toDataURL())}catch(W){y(Editor.svgBrokenImage.src)}};P.onerror=function(){window.clearTimeout(O);
H&&y(Editor.svgBrokenImage.src)};P.src=g}}catch(V){y(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(g,y,H,O){null==O&&(O=this.createImageUrlConverter());var P=0,V=H||{};H=mxUtils.bind(this,function(R,W){R=g.getElementsByTagName(R);for(var X=0;X<R.length;X++)mxUtils.bind(this,function(Z){try{if(null!=Z){var Y=O.convert(Z.getAttribute(W));if(null!=Y&&"data:"!=Y.substring(0,5)){var ea=V[Y];null==ea?(P++,this.convertImageToDataUri(Y,function(fa){null!=fa&&(V[Y]=fa,Z.setAttribute(W,