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);