Language: JavaScript
Label: safe
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
e.appendChild(L);e.appendChild(f);A.appendChild(e);var H=v,d,g,n=function(B,G,I,F){var U="data:"==B.substring(0,5);!b.isOffline()||U&&"undefined"===typeof chrome?0<B.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(B,function(R){b.spinner.stop();b.hideDialog();var N=!1===F?1:null!=G&&null!=I?Math.max(G/R.width,I/R.height):Math.min(1,Math.min(520/R.width,520/R.height));m&&(B=b.convertDataUri(B));c(B,Math.round(Number(R.width)*N),Math.round(Number(R.height)*N),H,d,g)},
function(){b.spinner.stop();c(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),c(B,null,null,H,d,g)):(B=b.convertDataUri(B),G=null==G?120:G,I=null==I?100:I,b.hideDialog(),c(B,G,I,H,d,g))},q=function(B,G){if(null!=B){var I=k?null:D.getModel().getGeometry(D.getSelectionCell());null!=I?n(B,I.width,I.height,G):n(B,null,null,G)}else b.hideDialog(),c(null)};this.init=function(){L.focus();if(Graph.fileSupport){L.setAttribute("placeholder",