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:
K.pagecount=null!=d.pages?d.pages.length:1;K.page=null!=d.currentPage?d.currentPage.getName():"";K.pagenumber=null!=d.pages&&null!=d.currentPage?mxUtils.indexOf(d.pages,d.currentPage)+1:1;return K};var p=g.getGlobalVariable;g.getGlobalVariable=function(K){var R=d.getCurrentFile();return"filename"==K&&null!=R?R.getTitle():"page"==K&&null!=d.currentPage?d.currentPage.getName():"pagenumber"==K?null!=d.currentPage&&null!=d.pages?mxUtils.indexOf(d.pages,d.currentPage)+1:1:"pagecount"==K?null!=d.pages?
d.pages.length:1:p.apply(this,arguments)};var q=null,C=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var K=this.getCurrentFile(),R=null!=K&&null!=K.getTitle()?K.getTitle():this.defaultFilename;q!=R&&K==C&&(g.invalidateDescendantsWithPlaceholders(g.model.getRoot()),g.view.validate());q=R;C=K}));var J=g.labelLinkClicked;g.labelLinkClicked=function(K,R,m){var A=R.getAttribute("href");if(null==A||!g.isCustomLink(A)||!mxEvent.isTouchEvent(m)&&mxEvent.isPopupTrigger(m))J.apply(this,