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:
function(H,O){if(null==O){var P=mxEvent.getSource(H);"a"==P.nodeName.toLowerCase()&&(O=P.getAttribute("href"))}null!=O&&e.isCustomLink(O)&&(mxEvent.isTouchEvent(H)||!mxEvent.isPopupTrigger(H))&&e.customLinkClicked(O)&&mxEvent.consume(H);null!=y&&y(H,O)};C.call(this,L,U,g)};v.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(e.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var I=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(L,U,g){e.isSelectionEmpty()&&
"simple"==Editor.currentTheme&&this.addMenuItems(L,["zoomIn","zoomOut","-"],null,g);I.apply(this,arguments);e.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(L,["-","addToScratchpad"],null,g);e.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(L,["-","exitGroup","home"],null,g)};var B=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(L,U,g){if(c.editor.graph.isSelectionEmpty())B.apply(this,arguments),c.menus.addMenuItems(L,["copyAsImage"],