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:
O.substring(0,11)?c.loadImage(O,mxUtils.bind(this,function(Q){var U=!0,W=mxUtils.bind(this,function(){c.resizeImage(Q,O,mxUtils.bind(this,function(P,V,X){P=U?Math.min(1,Math.min(c.maxImageSize/V,c.maxImageSize/X)):1;c.importFile(O,S,A,M,Math.round(V*P),Math.round(X*P),K,function(Y){c.spinner.stop();k.setSelectionCells(Y);k.scrollCellToVisible(k.getSelectionCell())})}),U)});O.length>c.resampleThreshold?c.confirmImageResize(function(P){U=P;W()}):W()}),mxUtils.bind(this,function(){c.handleError({message:mxResources.get("cannotOpenFile")})})):