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:
!this.isCorsEnabledForUrl(g)){var y=/(\.v(dx|sdx?))($|\?)/i.test(g)||/(\.vs(x|sx?))($|\?)/i.test(g);y=/\.png$/i.test(g)||/\.pdf$/i.test(g)||y;var H="t="+(new Date).getTime();g=PROXY_URL+"?url="+encodeURIComponent(g)+"&"+H+(y?"&base64=1":"")}return g};Editor.prototype.isCorsEnabledForUrl=function(g){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||g.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));
return null!=this.corsRegExp&&this.corsRegExp.test(g)||"https://raw.githubusercontent.com/"===g.substring(0,34)||"https://fonts.googleapis.com/"===g.substring(0,29)||"https://fonts.gstatic.com/"===g.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var g=new mxUrlConverter;g.updateBaseUrl();var y=g.convert,H=this;g.convert=function(O){if(null!=O){var P="http://"==O.substring(0,7)||"https://"==O.substring(0,8);P&&!navigator.onLine?O=Editor.svgBrokenImage.src:!P||O.substring(0,g.baseUrl.length)==