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:
mxUtils.bind(this,function(U){this.spinner.stop();A(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(U))})))}else C=q+".svg",m=this.getFileData(!1,!0,null,mxUtils.bind(this,function(U){this.spinner.stop();A(U)}),t)}}catch(U){this.handleError(U)}};EditorUi.prototype.createDownloadRequest=function(d,g,n,t,u,v,B,H,L,G,T,p,q){d=this.downloadRequestBuilder(d,g,n,t,u,v,B,H,L,G,T,p,q);g="";for(var C in d)n=d[C],null!=n&&(g+=C+"="+encodeURIComponent(n)+"&");return new mxXmlRequest(EXPORT_URL,
g)};EditorUi.prototype.downloadRequestBuilder=function(d,g,n,t,u,v,B,H,L,G,T,p,q){var C=this.editor.graph,J=C.getGraphBounds();n=this.getFileData(!0,null,null,null,n,0==v?!1:"xmlpng"!=g,null,null,null,!Editor.defaultCompressed,"pdf"==g);var F=null,O=null,S=null;if(J.width*J.height>MAX_AREA||n.length>MAX_REQUEST_SIZE)throw{message:mxResources.get("drawingTooLarge")};G=G?"1":"0";"pdf"==g&&(null!=T?(F=T.from,O=T.to):0==v&&(S="1"));"xmlpng"==g&&(G="1",g="png");if(("xmlpng"==g||"svg"==g)&&null!=this.pages&&