Language: JavaScript
Label: vulnerable
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:
function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}d.actions.get("print").funct=function(){d.showDialog((new PrintDialog(d)).container,360,null!=d.pages&&1<d.pages.length?470:390,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var S=g.getExportVariables;g.getExportVariables=function(){var O=S.apply(this,arguments),N=d.getCurrentFile();null!=N&&(O.filename=N.getTitle());
O.pagecount=null!=d.pages?d.pages.length:1;O.page=null!=d.currentPage?d.currentPage.getName():"";O.pagenumber=null!=d.pages&&null!=d.currentPage?mxUtils.indexOf(d.pages,d.currentPage)+1:1;return O};var p=g.getGlobalVariable;g.getGlobalVariable=function(O){var N=d.getCurrentFile();return"filename"==O&&null!=N?N.getTitle():"page"==O&&null!=d.currentPage?d.currentPage.getName():"pagenumber"==O?null!=d.currentPage&&null!=d.pages?mxUtils.indexOf(d.pages,d.currentPage)+1:1:"pagecount"==O?null!=d.pages?