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:
"https://app.diagrams.net/";var y=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(A){A=null!=A?A:"";"1"==urlParams.dev&&(A+=(0<A.length?"&":"?")+"dev=1");return y.apply(this,arguments)};var C=e.addClickHandler;e.addClickHandler=function(A,I,g){var x=I;I=function(F,M){if(null==M){var Q=mxEvent.getSource(F);"a"==Q.nodeName.toLowerCase()&&(M=Q.getAttribute("href"))}null!=M&&e.isCustomLink(M)&&(mxEvent.isTouchEvent(F)||!mxEvent.isPopupTrigger(F))&&e.customLinkClicked(M)&&mxEvent.consume(F);
null!=x&&x(F,M)};C.call(this,A,I,g)};u.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(e.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var G=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(A,I,g){e.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(A,["zoomIn","zoomOut","-"],null,g);G.apply(this,arguments);e.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(A,["-","addToScratchpad"],null,g);e.isSelectionEmpty()&&