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:
x.push("page-id="+this.currentPage.getId());return x};EditorUi.prototype.createLink=function(c,e,k,q,p,t,x,C,I,B){I=this.createUrlParameters(c,e,k,q,p,t,I);c=this.getCurrentFile();e=!0;null!=x?k="#U"+encodeURIComponent(x):(c=this.getCurrentFile(),C||null==c||c.constructor!=window.DriveFile?k="#R"+encodeURIComponent(k?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(k="#"+c.getHash(),e=!1));e&&null!=c&&null!=c.getTitle()&&c.getTitle()!=
this.defaultFilename&&I.push("title="+encodeURIComponent(c.getTitle()));B&&1<k.length&&(I.push("open="+k.substring(1)),k="");return(q&&"1"!=urlParams.dev?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<I.length?"?"+I.join("&"):"")+k};EditorUi.prototype.createHtml=function(c,e,k,q,p,t,x,C,I,B,T,l){this.getBasenames();var n={};""!=p&&p!=mxConstants.NONE&&(n.highlight=p);"auto"!==