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:
null!=c&&null!=c.getTitle()&&c.getTitle()!=this.defaultFilename&&G.push("title="+encodeURIComponent(c.getTitle()));B&&1<k.length&&(G.push("open="+k.substring(1)),k="");return(n&&"1"!=urlParams.dev?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<G.length?"?"+G.join("&"):"")+k};EditorUi.prototype.createHtml=function(c,e,k,n,p,t,y,C,G,B,V,R){this.getBasenames();var O={};""!=
p&&p!=mxConstants.NONE&&(O.highlight=p);"auto"!==n&&(O.target=n);B||(O.lightbox=!1);O.nav=this.editor.graph.foldingEnabled;k=parseInt(k);isNaN(k)||100==k||(O.zoom=k/100);k=[];y&&(k.push("pages"),O.resize=!0,null!=this.pages&&null!=this.currentPage&&(O.page=mxUtils.indexOf(this.pages,this.currentPage)));e&&(k.push("zoom"),O.resize=!0);C&&k.push("layers");G&&k.push("tags");0<k.length&&(B&&k.push("lightbox"),O.toolbar=k.join(" "));null!=V&&0<V.length&&(O.edit=V);null!=c?O.url=c:O.xml=this.getFileData(!0,
null,null,null,null,!y);e='<div class="mxgraph" style="'+(t?"max-width:100%;":"")+(""!=k?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(O))+'"></div>';c=null!=c?"&fetch="+encodeURIComponent(c):"";R(e,'<script type="text/javascript" src="'+(0<c.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+c:"1"==urlParams.dev?"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:
EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=function(c,e,k,n){var p=document.createElement("div");p.style.whiteSpace="nowrap";var t=document.createElement("h3");mxUtils.write(t,mxResources.get("html"));t.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";p.appendChild(t);var y=document.createElement("div");y.style.cssText="border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var C=document.createElement("input");