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:
t/I.view.scale);if(F.length<=MAX_REQUEST_SIZE&&R*N<MAX_AREA)if(d.hideDialog(),"png"!=n&&"jpg"!=n&&"jpeg"!=n||!d.isExportToCanvas()){var Q={globalVars:I.getExportVariables()};G&&(Q.grid={size:I.gridSize,steps:I.view.gridSteps,color:I.view.gridColor});d.saveRequest(g,n,function(P,M){return new mxXmlRequest(EXPORT_URL,"format="+n+"&base64="+(M||"0")+(null!=P?"&filename="+encodeURIComponent(P):"")+"&extras="+encodeURIComponent(JSON.stringify(Q))+(0<B?"&dpi="+B:"")+"&bg="+(null!=q?q:"none")+"&w="+R+"&h="+
N+"&border="+x+"&xml="+encodeURIComponent(F))})}else"png"==n?d.exportImage(t,null==q||"none"==q,!0,!1,!1,x,!0,!1,null,G,B):d.exportImage(t,!1,!0,!1,!1,x,!0,!1,"jpeg",G);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var d=this.editor.graph,g="";if(null!=this.pages)for(var n=0;n<this.pages.length;n++){var q=d;this.currentPage!=this.pages[n]&&(q=this.createTemporaryGraph(d.getStylesheet()),this.updatePageRoot(this.pages[n]),