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