code
stringlengths
14
2.05k
label
int64
0
1
programming_language
stringclasses
7 values
cwe_id
stringlengths
6
14
cwe_name
stringlengths
5
98
description
stringlengths
36
379
url
stringlengths
36
48
label_name
stringclasses
2 values
na[da])&&fa.push(na[da]);this.setHiddenTags(fa);this.refresh()}0<ea.length&&(O++,this.executeAnimations(ea,W,Z?1:Y.steps,Z?0:Y.delay));0==O?X():R()}else this.stoppingCustomActions=this.executingCustomActions=!1,R(),null!=y&&y()});X()}};Graph.prototype.doUpdateCustomLinksForCell=function(g,y){var H=this.getLinkForCell(y);null!=H&&"data:action/json,"==H.substring(0,17)&&this.setLinkForCell(y,this.updateCustomLink(g,H));if(this.isHtmlLabel(y)){var O=document.createElement("div");O.innerHTML=Graph.sanitizeHtml(this.getLabel(y)); for(var P=O.getElementsByTagName("a"),V=!1,R=0;R<P.length;R++)H=P[R].getAttribute("href"),null!=H&&"data:action/json,"==H.substring(0,17)&&(P[R].setAttribute("href",this.updateCustomLink(g,H)),V=!0);V&&this.labelChanged(y,O.innerHTML)}};Graph.prototype.updateCustomLink=function(g,y){if("data:action/json,"==y.substring(0,17))try{var H=JSON.parse(y.substring(17));null!=H.actions&&(this.updateCustomLinkActions(g,H.actions),y="data:action/json,"+JSON.stringify(H))}catch(O){}return y};Graph.prototype.updateCustomLinkActions=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
this.cellEditor.textarea.getElementsByTagName("font");y=Graph.getFontUrl(g,y);for(var O=0;O<H.length;O++)H[O].getAttribute("face")==g&&H[O].getAttribute("data-font-src")!=y&&H[O].setAttribute("data-font-src",y)}};var t=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return t.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
function(){var c=document.createElement("div");c.className="geButtonContainer";c.style.overflow="1"==urlParams.embed?"hidden":"";return c};EditorUi.prototype.openLink=function(c,e,k){return this.editor.graph.openLink(c,e,k)};EditorUi.prototype.showSplash=function(c){};EditorUi.prototype.getLocalData=function(c,e){e(localStorage.getItem(c))};EditorUi.prototype.setLocalData=function(c,e,k){localStorage.setItem(c,e);null!=k&&k()};EditorUi.prototype.removeLocalData=function(c,e){localStorage.removeItem(c);
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
c.shortcut):D.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(J){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=J?J:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};DiagramFormatPanel.prototype.isMathOptionVisible=function(){return!0};var F=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
""),Da.value=ua,Da.style.width="96px",Da.style.borderWidth="0px",Ha.appendChild(Da)):(Ha.innerHTML=mxUtils.htmlEntities(decodeURIComponent(ua)),mxEvent.addListener(Ha,"click",mxUtils.bind(Y,function(){function Ua(){var aa=ia.value;aa=0==aa.length&&"string"!=Ia?0:aa;va.allowAuto&&(null!=aa.trim&&"auto"==aa.trim().toLowerCase()?(aa="auto",Ia="string"):(aa=parseFloat(aa),aa=isNaN(aa)?0:aa));null!=va.min&&aa<va.min?aa=va.min:null!=va.max&&aa>va.max&&(aa=va.max);aa=encodeURIComponent(("int"==Ia?parseInt(aa): aa)+"");O(pa,aa,va)}var ia=document.createElement("input");P(Ha,ia,!0);ia.value=decodeURIComponent(ua);ia.className="gePropEditor";"int"!=Ia&&"float"!=Ia||va.allowAuto||(ia.type="number",ia.step="int"==Ia?"1":"any",null!=va.min&&(ia.min=parseFloat(va.min)),null!=va.max&&(ia.max=parseFloat(va.max)));g.appendChild(ia);mxEvent.addListener(ia,"keypress",function(aa){13==aa.keyCode&&Ua()});ia.focus();mxEvent.addListener(ia,"blur",function(){Ua()})})));va.isDeletable&&(Da=mxUtils.button("-",mxUtils.bind(Y,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
Math.floor((new Date-c)/1E3);var e=Math.floor(c/31536E3);if(1<e)return e+" "+mxResources.get("years");e=Math.floor(c/2592E3);if(1<e)return e+" "+mxResources.get("months");e=Math.floor(c/86400);if(1<e)return e+" "+mxResources.get("days");e=Math.floor(c/3600);if(1<e)return e+" "+mxResources.get("hours");e=Math.floor(c/60);return 1<e?e+" "+mxResources.get("minutes"):1==e?e+" "+mxResources.get("minute"):null};EditorUi.prototype.decodeNodeIntoGraph=function(c,e){if(null!=c){var k=null;if("diagram"==c.nodeName)k= c;else if("mxfile"==c.nodeName){var q=c.getElementsByTagName("diagram");if(0<q.length){k=q[0];var p=e.getGlobalVariable;e.getGlobalVariable=function(t){return"page"==t?k.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==t?1:p.apply(this,arguments)}}}null!=k&&(c=Editor.parseDiagramNode(k))}q=this.editor.graph;try{this.editor.graph=e,this.editor.setGraphXml(c)}catch(t){}finally{this.editor.graph=q}return c};EditorUi.prototype.getSvgFileProperties=function(c){return this.getPngFileProperties(c)};
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
Math.max(30,(this.diagramContainer.parentNode.clientHeight-e)/2):56,c-6,e-6,mxUtils.bind(this,function(q){this.createShapesPanel(q)}));this.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.sidebarWindow.window.fit()}));this.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90);this.sidebarWindow.window.setVisible(!1)}};EditorUi.prototype.setSketchMode=function(c){this.spinner.spin(document.body,mxResources.get("working")+"...")&&window.setTimeout(mxUtils.bind(this, function(){this.spinner.stop();this.doSetSketchMode(c);null==urlParams.rough&&(mxSettings.settings.sketchMode=c,mxSettings.save());this.fireEvent(new mxEventObject("sketchModeChanged"))}),0)};Editor.createMinimalCss=function(){return(Editor.isDarkMode()?"html body .geMenubarContainer .geMenuItem .geMenuItem, html body .geMenubarContainer a.geMenuItem { color: #353535; }html body .geToolbarContainer .geMenuItem, html body .geToolbarContainer .geToolbarButton, html body .geMenubarContainer .geMenuItem .geMenuItem, html body .geMenubarContainer a.geMenuItem,html body .geMenubarContainer .geToolbarButton { filter: invert(1); }html > body.geEditor > div > a.geItem { background-color: "+
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
gridSize:parseFloat(b.getAttribute("gridSize"))||mxGraph.prototype.gridSize,guidesEnabled:"0"!=b.getAttribute("guides"),foldingEnabled:"0"!=b.getAttribute("fold"),shadowVisible:"1"==b.getAttribute("shadow"),pageVisible:this.isLightboxView()?!1:null!=f?"0"!=f:this.defaultPageVisible,background:null!=v&&0<v.length?v:null,backgroundImage:D,pageScale:isNaN(m)?mxGraph.prototype.pageScale:m,pageFormat:isNaN(d)||isNaN(u)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat: mxSettings.getPageFormat():new mxRectangle(0,0,d,u),tooltips:"0"!=b.getAttribute("tooltips"),connect:"0"!=b.getAttribute("connect"),arrows:"0"!=b.getAttribute("arrows"),mathEnabled:"1"==b.getAttribute("math"),selectionCells:null,defaultParent:null,scrollbars:this.defaultScrollbars,scale:1,hiddenTags:[],extFonts:F||[]}};
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
arguments)};var v=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var c=this,e=this.editor.graph;Graph.touchStyle&&(e.panningHandler.isPanningTrigger=function(L){var U=L.getEvent();return null==L.getState()&&!mxEvent.isMouseEvent(U)&&!e.freehand.isDrawing()||mxEvent.isPopupTrigger(U)&&(null==L.getState()||mxEvent.isControlDown(U)||mxEvent.isShiftDown(U))});e.cellEditor.editPlantUmlData=function(L,U,g){var y=JSON.parse(g);
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,x,null,1<C,I,q,t,p);C=this.isServices(C)?4<C?390:280:160;this.showDialog(c.container,420,C,!0,!0);c.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(c,e,k,q,p,t){};EditorUi.prototype.pickFolder=function(c,e,k){e(null)};EditorUi.prototype.exportSvg=function(c,e,k,q,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.patchPages=function(b,f,m,d,u){var v={},D=[],F={},K={},M={},G={};if(null!=d&&null!=d[EditorUi.DIFF_UPDATE])for(var S in d[EditorUi.DIFF_UPDATE])v[S]=d[EditorUi.DIFF_UPDATE][S];if(null!=f[EditorUi.DIFF_REMOVE])for(d=0;d<f[EditorUi.DIFF_REMOVE].length;d++)K[f[EditorUi.DIFF_REMOVE][d]]=!0;if(null!=f[EditorUi.DIFF_INSERT])for(d=0;d<f[EditorUi.DIFF_INSERT].length;d++)F[f[EditorUi.DIFF_INSERT][d].previous]=f[EditorUi.DIFF_INSERT][d];if(null!=f[EditorUi.DIFF_UPDATE])for(S in f[EditorUi.DIFF_UPDATE])d= f[EditorUi.DIFF_UPDATE][S],null!=d.previous&&(G[d.previous]=S);if(null!=b){var J="";for(d=0;d<b.length;d++){var c=b[d].getId();M[c]=b[d];null!=G[J]||K[c]||null!=f[EditorUi.DIFF_UPDATE]&&null!=f[EditorUi.DIFF_UPDATE][c]&&null!=f[EditorUi.DIFF_UPDATE][c].previous||(G[J]=c);J=c}}var e={},k=mxUtils.bind(this,function(p){var t=null!=p?p.getId():"";if(null!=p&&!e[t]){e[t]=!0;D.push(p);var x=null!=f[EditorUi.DIFF_UPDATE]?f[EditorUi.DIFF_UPDATE][t]:null;null!=x&&(this.updatePageRoot(p),null!=x.name&&p.setName(x.name), null!=x.view&&this.patchViewState(p,x.view),null!=x.cells&&this.patchPage(p,x.cells,v[p.getId()],u),!m||null==x.cells&&null==x.view||(p.needsUpdate=!0))}p=G[t];null!=p&&(delete G[t],k(M[p]));p=F[t];null!=p&&(delete F[t],q(p))}),q=mxUtils.bind(this,function(p){p=mxUtils.parseXml(p.data).documentElement;p=new DiagramPage(p);this.updatePageRoot(p);var t=M[p.getId()];null==t?k(p):(this.patchPage(t,this.diffPages([t],[p]),v[t.getId()],u),m&&(t.needsUpdate=!0))});k();for(S in G)k(M[G[S]]),delete G[S];for(S in F)q(F[S]), delete F[S];return D};EditorUi.prototype.patchViewState=function(b,f){if(null!=b.viewState&&null!=f){b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var m in f)try{this.patchViewStateProperty(b,f,m)}catch(d){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};EditorUi.prototype.patchViewStateProperty=function(b,f,m){b.viewState[m]=JSON.parse(f[m])};
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
mxResources.get("ok"),la,ia,function(sa){var ta=null!=sa&&0<sa.length;return ta&&e?(la(sa),!1):ta},null,null,null,ha,c?null:[]),b.showDialog(ia.container,350,80,!0,!0),ia.init())}}function I(ia){ka.innerText=mxResources.get(fa||ia?"create":"copy");ia=ia?"none":"";S&&(Aa.style.display=ia);for(var aa=L.querySelectorAll(".geTempDlgLinkToDiagram"),la=0;la<aa.length;la++)aa[la].style.display=ia}function B(ia,aa,la,ma,oa){oa||(da.innerText="",x(),X=ia,Z=ma);var ha=null;if(la){ha=document.createElement("table");
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
function(c,e,k,q,p,t,x,C){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,e,k,q,p,t,x,C)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=function(c,e){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.addTabListeners=function(b,f){mxEvent.disableContextMenu(f);var m=this.editor.graph;mxEvent.addListener(f,"dblclick",mxUtils.bind(this,function(K){this.renamePage(b);mxEvent.consume(K)}));var d=document.createElement("div");d.className="geTabMenuButton";d.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";d.style.backgroundPosition="center center";d.style.backgroundRepeat="no-repeat";d.style.backgroundSize="10px";f.appendChild(d);var u=!1,v=!1,D=mxUtils.bind(this, function(K){u=null!=this.currentMenu;v=b==this.currentPage;m.isMouseDown||v||this.selectPage(b);this.scrollToPage()}),F=mxUtils.bind(this,function(K){if(m.isEnabled()&&!m.isMouseDown&&(v&&(mxEvent.isTouchEvent(K)||mxEvent.getSource(K)==d)||mxEvent.isPopupTrigger(K))&&(m.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(K)||!u)){var M=new mxPopupMenu(this.createPageMenu(b));M.div.className+=" geMenubarMenu";M.smartSeparators=!0;M.showDisabled=!0;M.autoExpand=!0;M.hideMenu=mxUtils.bind(this, function(){mxPopupMenu.prototype.hideMenu.apply(M,arguments);this.resetCurrentMenu();M.destroy()});var G=mxEvent.getClientX(K),S=mxEvent.getClientY(K);M.popup(G,S,null,K);this.setCurrentMenu(M,f)}mxEvent.consume(K)});mxEvent.addGestureListeners(d,D,null,F);mxEvent.addGestureListeners(f,D,null,F)};
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
type:"bool",getDefaultValue:function(g,y){g=y.editorUi.editor.graph.getCellStyle(1==g.vertices.length&&0==g.edges.length?g.vertices[0]:null);return"1"==mxUtils.getValue(g,"resizeLastRow","0")},isVisible:function(g,y){y=y.editorUi.editor.graph;return 1==g.vertices.length&&0==g.edges.length&&y.isTable(g.vertices[0])}},{name:"resizeLast",dispName:"Resize Last Column",type:"bool",getDefaultValue:function(g,y){g=y.editorUi.editor.graph.getCellStyle(1==g.vertices.length&&0==g.edges.length?g.vertices[0]:
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.repositionLibrary=function(c){var e=this.sidebar.getEntryContainer();if(null==c){var k=this.sidebar.palettes["L.scratchpad"];null==k&&(k=this.sidebar.palettes.search);null!=k&&(c=k[k.length-1].nextSibling)}c=null!=c?c:e.firstChild.nextSibling.nextSibling;k=e.lastChild;var q=k.previousSibling;e.insertBefore(k,c);e.insertBefore(q,k)};EditorUi.prototype.loadLibrary=function(c,e){var k=mxUtils.parseXml(c.getData());if("mxlibrary"==k.documentElement.nodeName){var q=JSON.parse(mxUtils.getTextContent(k.documentElement));
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
y,H,O){for(var P=0;P<O;P++)g=Editor.crcTable[(g^y.charCodeAt(H+P))&255]^g>>>8;return g};Editor.crc32=function(g){for(var y=-1,H=0;H<g.length;H++)y=y>>>8^Editor.crcTable[(y^g.charCodeAt(H))&255];return(y^-1)>>>0};Editor.writeGraphModelToPng=function(g,y,H,O,P){function V(Y,ea){var fa=X;X+=ea;return Y.substring(fa,X)}function R(Y){Y=V(Y,4);return Y.charCodeAt(3)+(Y.charCodeAt(2)<<8)+(Y.charCodeAt(1)<<16)+(Y.charCodeAt(0)<<24)}function W(Y){return String.fromCharCode(Y>>24&255,Y>>16&255,Y>>8&255,Y&255)}
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.updateTabContainer=function(){if(null!=this.tabContainer&&null!=this.pages){var b=this.editor.graph,f=document.createElement("div");f.className="geTabScroller";for(var m=null,d=0;d<this.pages.length;d++)mxUtils.bind(this,function(u,v){v.className=this.pages[u]==this.currentPage?"geTab gePageTab geActivePage":"geTab gePageTab geInactivePage";v.setAttribute("draggable","true");mxEvent.addListener(v,"dragstart",mxUtils.bind(this,function(D){b.isEnabled()?(mxClient.IS_FF&&D.dataTransfer.setData("Text", "<diagram/>"),m=u):mxEvent.consume(D)}));mxEvent.addListener(v,"dragend",mxUtils.bind(this,function(D){m=null;D.stopPropagation();D.preventDefault()}));mxEvent.addListener(v,"dragover",mxUtils.bind(this,function(D){null!=m&&(D.dataTransfer.dropEffect="move");D.stopPropagation();D.preventDefault()}));mxEvent.addListener(v,"drop",mxUtils.bind(this,function(D){null!=m&&u!=m&&this.movePage(m,u);D.stopPropagation();D.preventDefault()}));f.appendChild(v)})(d,this.createTabForPage(this.pages[d],d+1));d= null!=this.tabScroller?this.tabScroller.scrollLeft:0;this.tabContainer.innerText="";"simple"!=Editor.currentTheme&&(this.pageMenuTab=this.createPageMenuTab(),this.tabContainer.appendChild(this.pageMenuTab));this.tabContainer.appendChild(f);this.isPageInsertTabVisible()&&this.tabContainer.appendChild(this.createPageInsertTab());this.leftScrollTab=this.createLeftScrollTab();this.tabContainer.appendChild(this.leftScrollTab);this.rightScrollTab=this.createRightScrollTab();this.tabContainer.appendChild(this.rightScrollTab); this.tabScroller=f;this.tabScroller.scrollLeft=d;this.checkTabScrollerOverflow();mxEvent.addListener(this.tabScroller,"scroll",mxUtils.bind(this,function(u){this.checkTabScrollerOverflow()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.leftScrollTab.style,"transition","all 0.2s linear");mxUtils.setPrefixedStyle(this.rightScrollTab.style,"transition","all 0.2s linear")}),0)}};
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
A.readAsText(E)}else this.doImportVisio(E,e,C,q)}catch(N){C(N)}else try{""==z.responseType||"text"==z.responseType?C({message:z.responseText}):(A=new FileReader,A.onload=function(){try{C({message:JSON.parse(A.result).Message})}catch(N){C(N)}},A.readAsText(z.response))}catch(N){C({})}});z.send(B)}else if(x.clear())try{this.doImportVisio(c,e,C,q)}catch(E){C(E)}}else C({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?I():(this.loadingExtensions=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.prototype.setHiddenTags=function(g){this.hiddenTags=g;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(g){var y=mxUtils.indexOf(this.hiddenTags,g);0>y?this.hiddenTags.push(g):0<=y&&this.hiddenTags.splice(y,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(g){if(null==g||0==g.length||0==this.hiddenTags.length)return!1;g=g.split(" ");if(g.length>this.hiddenTags.length)return!1;for(var y=0;y<g.length;y++)if(0> mxUtils.indexOf(this.hiddenTags,g[y]))return!1;return!0};Graph.prototype.getCellsForTags=function(g,y,H,O){var P=[];if(null!=g){y=null!=y?y:this.model.getDescendants(this.model.getRoot());for(var V=0,R={},W=0;W<g.length;W++)0<g[W].length&&(R[g[W]]=!0,V++);for(W=0;W<y.length;W++)if(H&&this.model.getParent(y[W])==this.model.root||this.model.isVertex(y[W])||this.model.isEdge(y[W])){var X=this.getTagsForCell(y[W]),Z=!1;if(0<X.length&&(X=X.split(" "),X.length>=g.length)){for(var Y=Z=0;Y<X.length&&Z<V;Y++)null!=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
0;ja<ta.length;ja++)oa=ta[ja],0==ha==(null==la[oa.url])&&(Ga[oa.url]=!0,La.push(oa));la=Ga;ha++}0==La.length?za.innerText=mxResources.get("noResultsFor",[ia]):B(La,!0)}}function A(ia){if(Y!=ia||R!=ea)q(),Ba.scrollTop=0,da.innerText="",za.innerText=mxResources.get("searchResults")+' "'+ia+'"',Ua=null,fa?E(ia):F&&(ia?(Qa.spin(da),g=!1,U=!0,F(ia,Va,function(){k(mxResources.get("searchFailed"));Va([])},R?null:v)):z(R)),Y=ia,ea=R}function N(ia){null!=Ua&&clearTimeout(Ua);13==ia.keyCode?A(xa.value):Ua= setTimeout(function(){A(xa.value)},1E3)}var Q='<div class="geTempDlgHeader"><img src="/images/draw.io-logo.svg" class="geTempDlgHeaderLogo"><input type="search" class="geTempDlgSearchBox" '+(F?"":'style="display: none"')+' placeholder="'+mxResources.get("search")+'"></div><div class="geTemplatesList" style="display: none"><div class="geTempDlgBack">&lt; '+mxResources.get("back")+'</div><div class="geTempDlgHLine"></div><div class="geTemplatesLbl">'+mxResources.get("templates")+'</div></div><div class="geTempDlgContent" style="width: 100%"><div class="geTempDlgNewDiagramCat"><div class="geTempDlgNewDiagramCatLbl">'+
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
mxUtils.setOpacity(U,100),L.style.visibility="",g.stop(),N())}))}else N();B.appendChild(Q);++T==S&&(mxUtils.br(B),T=0)}function t(n){var z=C.value;if(null==n||null!=z&&0<z.length)q&&b.hideDialog(),m(z,n,C)}G="1"==urlParams.noDevice?!1:G;D=null!=D?D:!0;F=null!=F?F:!0;S=null!=S?S:4;q=null!=q?q:!0;v=document.createElement("div");v.style.whiteSpace="nowrap";null==d&&b.addLanguageMenu(v);var x=document.createElement("h2");mxUtils.write(x,u||mxResources.get("create"));x.style.marginTop="0px";x.style.marginBottom=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
c.nodeName&&(x=c.hasAttribute("max-scale")?parseFloat(c.getAttribute("max-scale")):1);c=c.nextSibling}}finally{t.endUpdate()}null!=x&&this.chromelessResize&&this.chromelessResize(!0,x)}return k};EditorUi.prototype.getCopyFilename=function(c,e){var k=null!=c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var q=k.lastIndexOf(".");0<=q&&(c=k.substring(q),k=k.substring(0,q));if(e){e=k;var p=new Date;k=p.getFullYear();q=p.getMonth()+1;var t=p.getDate(),x=p.getHours(),C=p.getMinutes();p=p.getSeconds(); k=e+(" "+(k+"-"+q+"-"+t+"-"+x+"-"+C+"-"+p))}return k=mxResources.get("copyOf",[k])+c};EditorUi.prototype.fileLoaded=function(c,e,k){var q=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var p=!1;this.hideDialog();null!=q&&(EditorUi.debug("File.closed",[q]),q.removeListener(this.descriptorChangedListener),q.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var t=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
function(c,e,k,q,p,t,x,C){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,e,k,q,p,t,x,C)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=function(c,e){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c, e)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,e,k,q,p,t,x,C,I,B,T,l,n,z,E,A){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,e,k,q,p,t,x,C,I,B,T,l,n,z,E,A)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
J.formatElt.style.width)}function f(J,c){function e(p,t){var x=J.menus.get(p);p=k.addMenu(t,mxUtils.bind(this,function(){x.funct.apply(this,arguments)}));p.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";p.className="geTitle";c.appendChild(p);return p}var k=new Menubar(J,c);if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
m?G=new mxHierarchicalLayout(v,mxConstants.DIRECTION_WEST):"circle"==m?G=new mxCircleLayout(v):(G=new mxFastOrganicLayout(v,!1),G.forceConstant=80);if(null!=G){var S=function(k,q){v.getModel().beginUpdate();try{null!=k&&k(),G.execute(v.getDefaultParent(),M)}catch(p){throw p;}finally{k=new mxMorphing(v),k.addListener(mxEvent.DONE,mxUtils.bind(this,function(){v.getModel().endUpdate();null!=q&&q()})),k.startAnimation()}},J=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(k,q,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
Math.max(20,I+mxEvent.getClientY(B)-x)+"px",T=!0);T&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),this.refresh())}),function(B){null==t&&null==x||mxEvent.consume(B);x=t=null});document.body.style.backgroundColor="transparent";this.diagramContainer.style.borderRadius="4px";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
[];this.traverse(u,!0,mxUtils.bind(this,function(F,K){var M=null!=K&&this.isTreeEdge(K);M&&v.push(K);F==u||null!=K&&!M||v.push(F);return(null==K||M)&&(F==u||!this.model.isCollapsed(F))}));this.model.setCollapsed(u,d);for(var D=0;D<v.length;D++)this.model.setVisible(v[D],!d)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(d){return!this.isEdgeIgnored(d)};Graph.prototype.getTreeEdges=function(d,u,v,D,F,K){return this.model.filterCells(this.getEdges(d,u,v,D,F,K),mxUtils.bind(this,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
this.menus.findReplaceWindow,this.menus.commentsWindow]));return c};EditorUi.prototype.fitWindows=function(){for(var c=this.getWindows(),e=0;e<c.length;e++)null!=c[e]&&c[e].window.fit()};EditorUi.prototype.hideWindows=function(){for(var c=this.getWindows(),e=0;e<c.length;e++)null!=c[e]&&c[e].window.setVisible(!1)};EditorUi.prototype.destroyWindows=function(){null!=this.sidebarWindow&&(this.sidebarWindow.destroy(),this.sidebarWindow=null);null!=this.formatWindow&&(this.formatWindow.destroy(),this.formatWindow= null);null!=this.freehandWindow&&(this.freehandWindow.destroy(),this.freehandWindow=null);null!=this.actions.outlineWindow&&(this.actions.outlineWindow.destroy(),this.actions.outlineWindow=null);null!=this.actions.layersWindow&&(this.actions.layersWindow.destroy(),this.actions.layersWindow=null);null!=this.menus&&(null!=this.menus.tagsWindow&&(this.menus.tagsWindow.destroy(),this.menus.tagsWindow=null),null!=this.menus.findWindow&&(this.menus.findWindow.destroy(),this.menus.findWindow=null),null!= this.menus.findReplaceWindow&&(this.menus.findReplaceWindow.destroy(),this.menus.findReplaceWindow=null),null!=this.menus.commentsWindow&&(this.menus.commentsWindow.destroy(),this.menus.commentsWindow=null))};EditorUi.prototype.switchThemeConstants=function(c){var e=this.editor.graph;e.defaultEdgeLength=Graph.prototype.defaultEdgeLength;e.defaultGridEnabled=Graph.prototype.defaultGridEnabled;e.defaultPageVisible=Graph.prototype.defaultPageVisible;null!=this.menus&&(this.menus.autoPopup="simple"!=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
!0;this.connectionHandler.isValidSource=function(K,U){return!1};this.alternateEdgeStyle="vertical";null==f&&this.loadStylesheet();var x=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var K=x.apply(this,arguments);if(this.graph.pageVisible){var U=[],L=this.graph.pageFormat,O=this.graph.pageScale,X=L.width*O;L=L.height*O;O=this.graph.view.translate;for(var W=this.graph.view.scale,J=this.graph.getPageLayout(),ha=0;ha<J.width;ha++)U.push(new mxRectangle(((J.x+ha)*X+O.x)*
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
b.showDialog(T.container,450,240,!0);T.init()}else u.constructor==DriveLibrary?b.showError(mxResources.get("error"),mxResources.get("diagramIsNotPublic"),mxResources.get("share"),mxUtils.bind(this,function(){b.drive.showPermissions(u.getId())}),null,mxResources.get("ok"),mxUtils.bind(this,function(){})):b.handleError({message:mxResources.get("diagramIsNotPublic")})})}),f.className="geBtn",d.appendChild(f));f=mxUtils.button(mxResources.get("export"),function(){var T=b.createLibraryDataFromImages(G),
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
function(z){G=z};this.setAutoScroll=function(z){S=z};this.setOpenFill=function(z){J=z};this.setStopClickEnabled=function(z){k=z};this.setSelectInserted=function(z){q=z};this.setSmoothing=function(z){m=z};this.setPerfectFreehandMode=function(z){t=z};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=function(z){p.size=z};this.getBrushSize=function(){return p.size};var x=function(z){e=z;b.getRubberband().setEnabled(!z);b.graphHandler.setSelectEnabled(!z);b.graphHandler.setMoveEnabled(!z);
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
m.setCellStyles(mxConstants.STYLE_ROTATION,Number(p.value),[f[x]])}}finally{m.getModel().endUpdate()}});t.className="geBtn gePrimaryBtn";mxEvent.addListener(u,"keypress",function(x){13==x.keyCode&&t.click()});v=document.createElement("div");v.style.marginTop="20px";v.style.textAlign="right";b.editor.cancelFirst?(v.appendChild(d),v.appendChild(t)):(v.appendChild(t),v.appendChild(d));u.appendChild(v);this.container=u},LibraryDialog=function(b,f,m,d,u,v){function D(T){for(T=document.elementFromPoint(T.clientX,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
W,(J.y*L+O.y)*W,X*W,L*W));for(ha=1;ha<J.height;ha++)U.push(new mxRectangle((J.x*X+O.x)*W,((J.y+ha)*L+O.y)*W,X*W,L*W));K=U.concat(K)}return K};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(K,U){return null==K.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(K){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
ma.join(" ")}null!=ia?(O=ia,O.className+=" "+aa,P=la,ka.className="geTempDlgCreateBtn"):(P=O=null,ka.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function C(ia,aa){if(null!=P){var la=function(sa){ja.isExternal?K(ja,function(ta){ma(ta,sa)},oa):ja.url?mxUtils.get(TEMPLATE_PATH+"/"+ja.url,mxUtils.bind(this,function(ta){200<=ta.getStatus()&&299>=ta.getStatus()?ma(ta.getText(),sa):oa()})):ma(b.emptyDiagramXml,sa)},ma=function(sa,ta){e||b.hideDialog(!0);f(sa,ta,ja,aa)},oa=function(){k(mxResources.get("cannotLoad")); ha()},ha=function(){P=ja;ka.className="geTempDlgCreateBtn";aa&&(Aa.className="geTempDlgOpenBtn")},ja=P;P=null;"boolean"!==typeof aa&&(aa=ja.isExternal&&S);1==ia?M(ja.url,ja):aa?(Aa.className="geTempDlgOpenBtn geTempDlgBtnDisabled geTempDlgBtnBusy",la()):(ka.className="geTempDlgCreateBtn geTempDlgBtnDisabled geTempDlgBtnBusy",ia=null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"),ia=new FilenameDialog(b,b.defaultFilename+".drawio",
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
za,this.stylesheet=da,this.refresh());return Ba};var I=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(g){I.apply(this,arguments);null!=g.secondLabel&&(g.secondLabel.destroy(),g.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(g){return[g.shape,g.text,g.secondLabel,g.control]};var B=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){B.apply(this,arguments);this.enumerationState=0};var T=mxGraphView.prototype.stateValidated;
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
k&&t.setAttribute("resource",k);var z=mxUtils.bind(this,function(E){E=(q?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(E);null!=p&&p(E);return E});e.mathEnabled&&this.editor.addMathCss(t);if(null!=p)this.embedFonts(t,mxUtils.bind(this,function(E){C?this.editor.convertImages(E,mxUtils.bind(this,function(A){z(A)})):z(E)}));else return z(t)};EditorUi.prototype.embedFonts=function(c,e){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&& this.editor.addFontCss(c,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(c,k),e(c)}catch(q){e(c)}}))}catch(k){e(c)}}))};EditorUi.prototype.exportImage=function(c,e,k,q,p,t,x,C,I,B,T,l,n){I=null!=I?I:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var z=this.editor.graph.isSelectionEmpty();k=null!=k?k:z;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
W.fillStyle=R;return W};g.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};g.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};g.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var V=2;V<arguments.length;V+=2)this.lastX=arguments[V-1],this.lastY=arguments[V],this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
t.descriptorChanged=function(){l.apply(this,arguments);var W=t.getCurrentFile();if(null!=W&&null!=W.getTitle()){var X=W.getMode();"google"==X?X="googleDrive":"github"==X?X="gitHub":"gitlab"==X?X="gitLab":"onedrive"==X&&(X="oneDrive");X=mxResources.get(X);C.setAttribute("title",W.getTitle()+(null!=X?" ("+X+")":""))}else C.removeAttribute("title")};t.setStatusText(t.editor.getStatus());C.appendChild(t.statusContainer);t.buttonContainer=document.createElement("div");t.buttonContainer.style.cssText="display:flex;justify-content:flex-end;padding-right:10px;gap:6px;white-space:nowrap;background-color:inherit;align-items:center;min-width:0;margin-left:auto;";
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
this.libraryLoaded(c,q,k.documentElement.getAttribute("title"),e)}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(c){return""};EditorUi.prototype.libraryLoaded=function(c,e,k,q){if(null!=this.sidebar){c.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(c.getHash());".scratchpad"==c.title&&(this.scratchpad=c);var p=this.sidebar.palettes[c.getHash()];p=null!=p?p[p.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var t=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
Ka+" ("+Xa.length+")",Ra=Ka=mxUtils.htmlEntities(Ka);15<Ka.length&&(Ka=Ka.substring(0,15)+"&hellip;");return{lbl:Ka+" ("+Xa.length+")",fullLbl:Pa,lblOnly:Ra}}function oa(Ka,Xa,Pa,Ra,Oa){mxEvent.addListener(Pa,"click",function(){y!=Pa&&(null!=y?(y.style.fontWeight="normal",y.style.textDecoration="none"):(ca.style.display="none",ba.style.minHeight="100%"),y=Pa,y.style.fontWeight="bold",y.style.textDecoration="underline",Ba.scrollTop=0,U&&(g=!0),za.innerHTML=Xa,Ca.style.display="none",B(Oa?aa[Ka]:Ra? Da[Ka][Ra]:ia[Ka],Oa?!1:!0))})}var ha=L.querySelector(".geTemplatesList");if(0<la){la=document.createElement("div");la.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;margin-top: 10px;";mxUtils.write(la,mxResources.get("custom"));ha.appendChild(la);for(var ja in aa){la=document.createElement("div");var sa=aa[ja];sa=ma(ja,sa);la.className="geTemplateCatLink";la.setAttribute("title",sa.fullLbl);la.innerHTML=sa.lbl;ha.appendChild(la);oa(ja,sa.lblOnly,la,null,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
c=A;this.confirmImageResize(function(U){E=U;L()},I)}else L()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(c,e){e=null!=e?e:!1;var k=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},q=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,p=function(t,x){if(t||e)mxSettings.setResizeImages(t?
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
function(c){c=mxUtils.parseXml(c);var e=this.editor.extractGraphModel(c.documentElement);c=[];if(null!=e){var k=new mxCodec(e.ownerDocument),q=new mxGraphModel;k.decode(e,q);e=q.getChildAt(q.getRoot(),0);for(k=0;k<q.getChildCount(e);k++)c.push(q.getChildAt(e,k))}return c};EditorUi.prototype.openFileHandle=function(c,e,k,q,p){if(null!=e&&0<e.length){if(!this.useCanvasForExport&&/(\.png)$/i.test(e)||/(\.pdf)$/i.test(e))e=e.substring(0,e.length-4),/(\.drawio)$/i.test(e)||(e+=".drawio");var t=mxUtils.bind(this,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
this.defaultFilename,!0);M.getHash=function(){return b};this.fileLoaded(M);null!=d&&d()}else if("E"==b.charAt(0))null==this.getCurrentFile()?this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile")):this.remoteInvoke("getDraftFileContent",null,null,mxUtils.bind(this,function(c,e){this.spinner.stop();this.fileLoaded(new EmbedFile(this,c,e));null!=d&&d()}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){D.refresh();this.window.fit()}));b.installResizeHandler(this,!0)},AuthDialog=function(b,f,m,d){var u=document.createElement("div");u.style.textAlign="center";var v=document.createElement("p");v.style.fontSize="16pt";v.style.padding="0px";v.style.margin="0px";v.style.color="gray";mxUtils.write(v,mxResources.get("authorizationRequired"));var D="Unknown",F=document.createElement("img");F.setAttribute("border","0"); F.setAttribute("align","absmiddle");F.style.marginRight="10px";f==b.drive?(D=mxResources.get("googleDrive"),F.src=IMAGE_PATH+"/google-drive-logo-white.svg"):f==b.dropbox?(D=mxResources.get("dropbox"),F.src=IMAGE_PATH+"/dropbox-logo-white.svg"):f==b.oneDrive?(D=mxResources.get("oneDrive"),F.src=IMAGE_PATH+"/onedrive-logo-white.svg"):f==b.gitHub?(D=mxResources.get("github"),F.src=IMAGE_PATH+"/github-logo-white.svg"):f==b.gitLab?(D=mxResources.get("gitlab"),F.src=IMAGE_PATH+"/gitlab-logo.svg",F.style.width= "32px"):f==b.trello&&(D=mxResources.get("trello"),F.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizeThisAppIn",[D]));var K=document.createElement("input");K.setAttribute("type","checkbox");D=mxUtils.button(mxResources.get("authorize"),function(){d(K.checked)});D.insertBefore(F,D.firstChild);D.style.marginTop="6px";D.className="geBigButton";D.style.fontSize="18px";D.style.padding="14px";u.appendChild(v);u.appendChild(b);u.appendChild(D); m&&(m=document.createElement("p"),m.style.marginTop="20px",m.appendChild(K),v=document.createElement("span"),mxUtils.write(v," "+mxResources.get("rememberMe")),m.appendChild(v),u.appendChild(m),K.checked=!0,K.defaultChecked=!0,mxEvent.addListener(v,"click",function(M){K.checked=!K.checked;mxEvent.consume(M)}));this.container=u},MoreShapesDialog=function(b,f,m){m=null!=m?m:b.sidebar.entries;var d=document.createElement("div"),u=[];if(null!=b.sidebar.customEntries)for(var v=0;v<b.sidebar.customEntries.length;v++){for(var D=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
W.fillStyle=R;return W};g.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};g.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};g.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var V=2;V<arguments.length;V+=2)this.lastX=arguments[V-1],this.lastY=arguments[V],this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
this.globalVars?mxUtils.clone(this.globalVars):{};var g=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=g)for(var y in g)this.globalVars[y]=g[y]}catch(H){null!=window.console&&console.log("Error in vars URL parameter: "+H)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var x=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(g){var y=x.apply(this,arguments);null==y&&null!=this.globalVars&&(y=this.globalVars[g]); return y};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var g=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(g.ownerDocument)).decode(g)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var C=Graph.prototype.getSvg;Graph.prototype.getSvg=function(g,y,H,O,P,V,R,W,X,Z,Y,ea,fa,na){var da=null,za=null,Ca=null;ea||null==this.themes||"darkTheme"!=this.defaultThemeName||(da=this.stylesheet,za=this.shapeForegroundColor,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
function(c,e,k,q,p){var t=document.createElement("div");t.style.whiteSpace="nowrap";var x=document.createElement("h3");mxUtils.write(x,mxResources.get("image"));x.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(p?"10":"4")+"px";t.appendChild(x);if(p){mxUtils.write(t,mxResources.get("zoom")+":");var C=document.createElement("input");C.setAttribute("type","text");C.style.marginRight="16px";C.style.width="60px";C.style.marginLeft="4px";C.style.marginRight="12px";C.value=this.lastExportZoom|| "100%";t.appendChild(C);mxUtils.write(t,mxResources.get("borderWidth")+":");var I=document.createElement("input");I.setAttribute("type","text");I.style.marginRight="16px";I.style.width="60px";I.style.marginLeft="4px";I.value=this.lastExportBorder||"0";t.appendChild(I);mxUtils.br(t)}var B=this.addCheckbox(t,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),T=q?null:this.addCheckbox(t,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);x=this.editor.graph; var l=q?null:this.addCheckbox(t,mxResources.get("transparentBackground"),x.background==mxConstants.NONE||null==x.background);null!=l&&(l.style.marginBottom="16px");c=new CustomDialog(this,t,mxUtils.bind(this,function(){var n=parseInt(C.value)/100||1,z=parseInt(I.value)||0;k(!B.checked,null!=T?T.checked:!1,null!=l?l.checked:!1,n,z)}),null,c,e);this.showDialog(c.container,300,(p?25:0)+(q?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(c,e,k,q,p,t,x,C,I){x=null!=x?x:Editor.defaultIncludeDiagram;
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
App.prototype.loadTemplate=function(b,f,m,d,u){var v=!1,D=b,F=null!=d?d:b,K=/(\.v(dx|sdx?))($|\?)/i.test(F)||/(\.vs(x|sx?))($|\?)/i.test(F);d=/\.png$/i.test(F)||/\.pdf$/i.test(F);this.editor.isCorsEnabledForUrl(D)||(v=d||K,D="t="+(new Date).getTime(),D=PROXY_URL+"?url="+encodeURIComponent(b)+"&"+D+(v?"&base64=1":""));this.editor.loadUrl(D,mxUtils.bind(this,function(M){try{var G=v?!window.atob||mxClient.IS_IE||mxClient.IS_IE11?Base64.decode(M):atob(M):M;if(K||this.isVisioData(G))K||(F=u?this.isRemoteVisioData(G)? "raw.vss":"raw.vssx":this.isRemoteVisioData(G)?"raw.vsd":"raw.vsdx"),this.importVisio(this.base64ToBlob(M.substring(M.indexOf(",")+1)),function(S){f(S)},m,F);else if((new XMLHttpRequest).upload&&this.isRemoteFileFormat(G,F))this.isExternalDataComms()?this.parseFileData(G,mxUtils.bind(this,function(S){4==S.readyState&&200<=S.status&&299>=S.status&&"<mxGraphModel"==S.responseText.substring(0,13)&&f(S.responseText)}),b):this.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,m); else if(this.isLucidChartData(G))this.convertLucidChart(G,mxUtils.bind(this,function(S){f(S)}),mxUtils.bind(this,function(S){m(S)}));else{if(/(\.png)($|\?)/i.test(F)||Editor.isPngData(G))G=Editor.extractGraphModelFromPng(M);f(G)}}catch(S){m(S)}}),m,/(\.png)($|\?)/i.test(F)||/(\.v(dx|sdx?))($|\?)/i.test(F)||/(\.vs(x|sx?))($|\?)/i.test(F),null,null,v)};
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
e;p.onerror=k;for(var t=0;t<q.length;t++)p.objectStore(q[t]).delete(c[t])}),k)};EditorUi.prototype.getDatabaseItem=function(c,e,k,q){this.openDatabase(mxUtils.bind(this,function(p){try{q=q||"objects";var t=p.transaction([q],"readonly").objectStore(q).get(c);t.onsuccess=function(){e(t.result)};t.onerror=k}catch(x){null!=k&&k(x)}}),k)};EditorUi.prototype.getDatabaseItems=function(c,e,k){this.openDatabase(mxUtils.bind(this,function(q){try{k=k||"objects";var p=q.transaction([k],"readonly").objectStore(k).openCursor(IDBKeyRange.lowerBound(0)),
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
try{p.labelChanged(x,c),Graph.isLink(c)&&p.setLinkForCell(x,c)}finally{p.model.endUpdate()}}p.setSelectionCell(x)}else t=p.getInsertPoint(),p.isMouseInsertPoint()&&(x=0,p.lastPasteXml==c&&0<p.pasteCounter&&p.pasteCounter--),t=this.insertTextAt(c,t.x+x,t.y+x,!0),p.setSelectionCells(t);p.isSelectionEmpty()||(p.scrollCellToVisible(p.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(p.view.getState(p.getSelectionCell())));return t};EditorUi.prototype.pasteCells=function(c,e,k,q){if(!mxEvent.isConsumed(c)){var p=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
function(c){var e=this.editor.graph;return{event:c,pageVisible:e.pageVisible,translate:e.view.translate,bounds:e.getGraphBounds(),currentPage:this.getSelectedPageIndex(),scale:e.view.scale,page:e.view.getBackgroundPageBounds()}};EditorUi.prototype.sendEmbeddedSvgExport=function(c){try{var e=this.editor.graph;e.isEditing()&&e.stopEditing(!e.isInvokesStopCellEditing());var k=window.opener||window.parent;if(this.editor.modified){var q=e.background;if(null==q||q==mxConstants.NONE)q=this.embedExportBackground;
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",k,null,null,null,q)},null,null,null,q)},null,null,null,q)},null,null,null,q):mxscript(DRAWIO_BASE_URL+"/js/orgchart.min.js",k,null,null,null,q))}),onerror)};EditorUi.prototype.importCsv=function(c,e){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c, e)}))};EditorUi.prototype.doImportCsv=function(c,e){try{var k=c.split("\n"),q=[],p=[],t=[],x={};if(0<k.length){var C={},I=this.editor.graph,B=null,T=null,l=null,n=null,z=null,E=null,A=null,N="whiteSpace=wrap;html=1;",Q=null,L=null,U="",g="auto",y="auto",H=!1,O=null,P=null,V=40,R=40,W=100,X=0,Z=mxUtils.bind(this,function(){null!=e?e(Ua):(I.setSelectionCells(Ua),I.scrollCellToVisible(I.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
e;p.onerror=k;for(var t=0;t<q.length;t++)p.objectStore(q[t]).delete(c[t])}),k)};EditorUi.prototype.getDatabaseItem=function(c,e,k,q){this.openDatabase(mxUtils.bind(this,function(p){try{q=q||"objects";var t=p.transaction([q],"readonly").objectStore(q).get(c);t.onsuccess=function(){e(t.result)};t.onerror=k}catch(x){null!=k&&k(x)}}),k)};EditorUi.prototype.getDatabaseItems=function(c,e,k){this.openDatabase(mxUtils.bind(this,function(q){try{k=k||"objects";var p=q.transaction([k],"readonly").objectStore(k).openCursor(IDBKeyRange.lowerBound(0)), t=[];p.onsuccess=function(x){null==x.target.result?c(t):(t.push(x.target.result.value),x.target.result.continue())};p.onerror=e}catch(x){null!=e&&e(x)}}),e)};EditorUi.prototype.getDatabaseItemKeys=function(c,e,k){this.openDatabase(mxUtils.bind(this,function(q){try{k=k||"objects";var p=q.transaction([k],"readonly").objectStore(k).getAllKeys();p.onsuccess=function(){c(p.result)};p.onerror=e}catch(t){null!=e&&e(t)}}),e)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.recentCustomFonts[O]=P,y=document.getElementsByTagName("head")[0],null!=H&&("link"==P.elt.nodeName.toLowerCase()?(P.elt.onload=H,P.elt.onerror=H):H()),null!=y&&y.appendChild(P.elt)):null!=H&&H()}else null!=H&&H()}else null!=H&&H();return g};Graph.getFontUrl=function(g,y){g=Graph.customFontElements[g.toLowerCase()];null!=g&&(y=g.url);return y};Graph.processFontAttributes=function(g){g=g.getElementsByTagName("*");for(var y=0;y<g.length;y++){var H=g[y].getAttribute("data-font-src");if(null!=H){var O= "FONT"==g[y].nodeName?g[y].getAttribute("face"):g[y].style.fontFamily;null!=O&&Graph.addFont(O,H)}}};Graph.processFontStyle=function(g){if(null!=g){var y=mxUtils.getValue(g,"fontSource",null);if(null!=y){var H=mxUtils.getValue(g,mxConstants.STYLE_FONTFAMILY,null);null!=H&&Graph.addFont(H,decodeURIComponent(y))}}return g};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
x,null,null,null,t)):mxscript("js/extensions.min.js",x,null,null,null,t))};EditorUi.prototype.generatePlantUmlImage=function(c,e,k,q){function p(C,I,B){c1=C>>2;c2=(C&3)<<4|I>>4;c3=(I&15)<<2|B>>6;c4=B&63;r="";r+=t(c1&63);r+=t(c2&63);r+=t(c3&63);return r+=t(c4&63)}function t(C){if(10>C)return String.fromCharCode(48+C);C-=10;if(26>C)return String.fromCharCode(65+C);C-=26;if(26>C)return String.fromCharCode(97+C);C-=26;return 0==C?"-":1==C?"_":"?"}var x=new XMLHttpRequest;x.open("GET",("txt"==e?PLANT_URL+
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
c:null)}catch(q){this.handleError(q)}};EditorUi.prototype.writeImageToClipboard=function(c,e,k,q){var p=this.base64ToBlob(c.substring(c.indexOf(",")+1),"image/png");c=new ClipboardItem({"image/png":p,"text/html":new Blob(['<img src="'+c+'" width="'+e+'" height="'+k+'">'],{type:"text/html"})});navigator.clipboard.write([c])["catch"](q)};EditorUi.prototype.copyCells=function(c,e){var k=this.editor.graph;if(k.isSelectionEmpty())c.innerText="";else{var q=mxUtils.sortCells(k.model.getTopmostCells(k.getSelectionCells())), p=mxUtils.getXml(k.encodeCells(q));mxUtils.setTextContent(c,encodeURIComponent(p));e?(k.removeCells(q,!1),k.lastPasteXml=null):(k.lastPasteXml=p,k.pasteCounter=0);c.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var c=null;if(Editor.enableNativeCipboard){var e=this.editor.graph;e.isSelectionEmpty()||(c=mxUtils.sortCells(e.getExportableCells(e.model.getTopmostCells(e.getSelectionCells()))),e=mxUtils.getXml(e.encodeCells(c)),navigator.clipboard.writeText(e))}return c};
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
q;for(q in urlParams)0>mxUtils.indexOf(k,q)&&(c=0==e?c+"?":c+"&",null!=urlParams[q]&&(c+=q+"="+urlParams[q],e++))}return c};EditorUi.prototype.showLinkDialog=function(c,e,k,q,p){c=new LinkDialog(this,c,e,k,!0,q,p);this.showDialog(c.container,560,130,!0,!0);c.init()};EditorUi.prototype.getServiceCount=function(c){var e=1;null==this.drive&&"function"!==typeof window.DriveClient||e++;null==this.dropbox&&"function"!==typeof window.DropboxClient||e++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
q.model.getChildAt(e,C))};EditorUi.prototype.updatePageLink=function(c,e){if(Graph.isPageLink(e)){var k=c[e.substring(e.indexOf(",")+1)];e=null!=k?"data:page/id,"+k:null}else if("data:action/json,"==e.substring(0,17))try{var q=JSON.parse(e.substring(17));if(null!=q.actions){for(var p=0;p<q.actions.length;p++){var t=q.actions[p];if(null!=t.open&&Graph.isPageLink(t.open)){var x=t.open.substring(t.open.indexOf(",")+1);k=c[x];null!=k?t.open="data:page/id,"+k:null==this.getPageById(x)&&delete t.open}}e= "data:action/json,"+JSON.stringify(q)}}catch(C){}return e};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,e,k,q,p){var t=mxUtils.bind(this,function(x){this.loadingExtensions=!1;null!=k?k(x):this.handleError(x)});this.createTimeout(null,mxUtils.bind(this,function(x){q=null!=q?q:c.name;var C=mxUtils.bind(this,function(B){x.clear()&&t(B)}),I=mxUtils.bind(this,function(){this.loadingExtensions=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
c=A;this.confirmImageResize(function(U){E=U;L()},I)}else L()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(c,e){e=null!=e?e:!1;var k=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},q=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,p=function(t,x){if(t||e)mxSettings.setResizeImages(t? x:null),mxSettings.save();k();c(x)};null==q||e?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(t){p(t,!0)},function(t){p(t,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?220:200,!0,!0):p(!1,q)};EditorUi.prototype.parseFile=function(c,e,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
"none",c.style.display="none");var q=document.createElement("option"),p=!1,t=!1,x=function(A,N){p||null!=A&&t||(S.checked?null!=N&&N(q.selected?null:c.value):""==J.value||b.isOffline()?(I.value="",B.value="",null!=N&&N("")):(J.value=mxUtils.trim(J.value),b.loadImage(J.value,function(Q){I.value=Q.width;B.value=Q.height;null!=N&&N(J.value)},function(){b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"));I.value="";B.value="";null!=N&&N(null)})))},C=mxUtils.bind(this,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
A.readAsText(E)}else this.doImportVisio(E,e,C,q)}catch(N){C(N)}else try{""==z.responseType||"text"==z.responseType?C({message:z.responseText}):(A=new FileReader,A.onload=function(){try{C({message:JSON.parse(A.result).Message})}catch(N){C(N)}},A.readAsText(z.response))}catch(N){C({})}});z.send(B)}else if(x.clear())try{this.doImportVisio(c,e,C,q)}catch(E){C(E)}}else C({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?I():(this.loadingExtensions=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
null!=m&&m();b.openLink(f,null,!0)});F.className="geBtn gePrimaryBtn";F.style.width=D.style.width;v.appendChild(F);mxUtils.br(v);mxUtils.br(v);mxUtils.write(v,mxResources.get("allowPopups"));this.container=v},ImageDialog=function(b,f,m,d,u,v,D,F){function K(){0<S.value.length?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")}v=null!=v?v:!0;var M=b.editor.graph,G=document.createElement("div");mxUtils.write(G,f);f=document.createElement("div");f.className="geTitle";f.style.backgroundColor=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
x,e.container.scrollTop=C,this.pasteCells(t,k,!1,!0)}catch(I){this.handleError(I)}}),0)}}catch(I){this.handleError(I)}}),!0);var p=this.isSelectionAllowed;this.isSelectionAllowed=function(t){return mxEvent.getSource(t)==k?!0:p.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(c,e){mxSettings.setUi(c);(e=this.doSetCurrentTheme(c)||e)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(c){return""==c||"dark"==c||"default"==c||"kennedy"== c||null==c};EditorUi.prototype.doSetCurrentTheme=function(c,e,k){function q(I){return"simple"==I||0==e&&"sketch"==I}e=null!=e?e:150;var p=Editor.currentTheme,t=q(p)&&this.isDefaultTheme(c)||this.isDefaultTheme(p)&&q(c),x=t&&"sketch"!=c&&"sketch"!=p;if(t&&!this.themeSwitching){Editor.currentTheme=c;this.themeSwitching=!0;var C=this.saveScrollState();mxUtils.setPrefixedStyle(this.container.style,"transition","all "+e+"ms ease-in-out");0==e&&(this.container.style.opacity="0");window.setTimeout(mxUtils.bind(this,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
App.prototype.filterDrafts=function(b,f,m){function d(){m(u)}var u=[];try{this.getDatabaseItems(mxUtils.bind(this,function(v){EditorUi.debug("App.filterDrafts",[this],"items",v);for(var D=0;D<v.length;D++)try{var F=v[D].key;if(null!=F&&".draft_"==F.substring(0,7)){var K=JSON.parse(v[D].data);null!=K&&"draft"==K.type&&K.aliveCheck!=f&&(null==b&&null==K.fileObject||null!=K.fileObject&&K.fileObject.path==b)&&(K.key=F,u.push(K))}}catch(M){}d()}),d)}catch(v){d()}};
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
function(C){x.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(C)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(q)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(c,e,k,q,p){this.isLocalFileSave()?this.saveLocalFile(k,c,q,p,e):this.saveRequest(c,e,mxUtils.bind(this,function(t,x){return this.createEchoRequest(k, t,q,p,e,x)}),k,p,q)};EditorUi.prototype.saveRequest=function(c,e,k,q,p,t,x){x=null!=x?x:!mxClient.IS_IOS||!navigator.standalone;var C=this.getServiceCount(!1);isLocalStorage&&C++;var I=4>=C?2:6<C?4:3;c=new CreateDialog(this,c,mxUtils.bind(this,function(B,T){if("_blank"==T||null!=B&&0<B.length){var l=k("_blank"==T?null:B,T==App.MODE_DEVICE||"download"==T||null==T||"_blank"==T?"0":"1");null!=l&&(T==App.MODE_DEVICE||"download"==T||"_blank"==T?l.simulate(document,"_blank"):this.pickFolder(T,mxUtils.bind(this,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
f.appendChild(v);this.pagesContainer=m;this.layersContainer=v;this.ui=b;m=document.createElement("div");m.style.marginTop="16px";m.style.textAlign="center";v=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=u&&u()});v.className="geBtn";b.editor.cancelFirst&&m.appendChild(v);var D=mxUtils.button(mxResources.get("ok"),mxUtils.bind(this,function(){b.hideDialog();d({pageId:this.selectedPage,layerIds:Object.keys(this.selectedLayers)})}));m.appendChild(D);D.className="geBtn gePrimaryBtn";
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
function(g){this.model.beginUpdate();try{for(var y=0;y<g.length;y++)this.model.setVisible(g[y],!this.model.isVisible(g[y]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(g,y){this.model.beginUpdate();try{for(var H=0;H<g.length;H++)this.model.setVisible(g[H],y)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(g,y,H,O){for(var P=0;P<g.length;P++)this.highlightCell(g[P],y,H,O)};Graph.prototype.highlightCell=function(g,y,H,O,P){y=null!=y?y:mxConstants.DEFAULT_VALID_COLOR;
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
ColorDialog.resetRecentColors=function(){K.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(g,y){var H=null;null!=g.editor.graph.getModel().getParent(y)?H=y.getId():null!=g.currentPage&&(H=g.currentPage.getId());return H});if(null!=window.StyleFormatPanel){var M=Format.prototype.init;Format.prototype.init=function(){M.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
"ready";x.postMessage(t,"*");if("json"==urlParams.proto){var C=this.editor.graph.openLink;this.editor.graph.openLink=function(I,B,T){C.apply(this,arguments);x.postMessage(JSON.stringify({event:"openLink",href:I,target:B,allowOpener:T}),"*")}}};EditorUi.prototype.createEmbedButton=function(c,e,k,q){var p="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme,t=document.createElement("button");t.setAttribute("title",c+(null!=k?" ("+k+")":""));t.style.marginLeft="6px"; mxUtils.write(t,c);p?(t.className=q?"gePrimaryBtn":"",t.style.marginLeft="8px",t.style.padding="6px"):t.className="geBigButton"+(q?"":" geBigStandardButton");mxEvent.addListener(t,"click",e);return t};EditorUi.prototype.addEmbedButtons=function(){var c=document.createElement("div");c.style.display="inline-flex";c.style.alignItems="center";c.style.marginLeft="auto";"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme&&(c.style.marginRight="66px",c.style["float"]=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
}finally{e.getModel().endUpdate()}t&&(e.setSelectionCell(k),e.scrollCellToVisible(k))}};m=mxUtils.button(mxResources.get("preview"),function(){c(G,S,!1)});m.className="geBtn";K.appendChild(m);m=mxUtils.button(mxResources.get("apply"),function(){c(b.editor.graph,f,!0)});m.className="geBtn gePrimaryBtn";K.appendChild(m);b.editor.cancelFirst||K.appendChild(u);F.appendChild(K);D.appendChild(F);v.appendChild(D);this.container=v},CustomDialog=function(b,f,m,d,u,v,D,F,K,M,G,S){var J=document.createElement("div"); J.appendChild(f);var c=document.createElement("div");c.style.marginTop=null!=S?S:"30px";c.style.textAlign="center";null!=D&&c.appendChild(D);b.isOffline()||null==v||(f=mxUtils.button(mxResources.get("help"),function(){b.openLink(v)}),f.className="geBtn",c.appendChild(f));K=mxUtils.button(K||mxResources.get("cancel"),function(){b.hideDialog();null!=d&&d()});K.className="geBtn";F&&(K.style.display="none");b.editor.cancelFirst&&c.appendChild(K);u=mxUtils.button(u||mxResources.get("ok"),mxUtils.bind(this, function(){M||b.hideDialog(null,null,this.container);if(null!=m){var e=m();if("string"===typeof e){b.showError(mxResources.get("error"),e);return}}M&&b.hideDialog(null,null,this.container)}));c.appendChild(u);u.className="geBtn gePrimaryBtn";b.editor.cancelFirst||c.appendChild(K);if(null!=G)for(F=0;F<G.length;F++)(function(e,k,q){e=mxUtils.button(e,function(p){k(p)});null!=q&&e.setAttribute("title",q);e.className="geBtn";c.appendChild(e)})(G[F][0],G[F][1],G[F][2]);J.appendChild(c);this.cancelBtn= K;this.okButton=u;this.container=J},TemplatesDialog=function(b,f,m,d,u,v,D,F,K,M,G,S,J,c,e){function k(ia){wa.innerText=ia;wa.style.display="block";setTimeout(function(){wa.style.display="none"},4E3)}function q(){null!=y&&(y.style.fontWeight="normal",y.style.textDecoration="none",H=y,y=null)}function p(ia,aa,la,ma,oa,ha,ja){if(-1<ia.className.indexOf("geTempDlgRadioBtnActive"))return!1;ia.className+=" geTempDlgRadioBtnActive";L.querySelector(".geTempDlgRadioBtn[data-id="+ma+"]").className="geTempDlgRadioBtn "+
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
"#000000")),wa=mxUtils.setStyle(wa,mxConstants.STYLE_GRADIENTCOLOR,mxUtils.getValue(pa,mxConstants.STYLE_GRADIENTCOLOR,null)),O.getModel().isVertex(Aa[xa])&&(wa=mxUtils.setStyle(wa,mxConstants.STYLE_FONTCOLOR,mxUtils.getValue(pa,mxConstants.STYLE_FONTCOLOR,null))));O.getModel().setStyle(Aa[xa],wa)}}finally{O.getModel().endUpdate()}}));ba.className="geStyleButton";ba.style.width="36px";ba.style.height=10>=this.defaultColorSchemes.length?"24px":"30px";ba.style.margin="0px 6px 6px 0px";if(null!=Ba){var ca= Editor.isDarkMode()?"2px solid":"1px solid";null!=Ba.border&&(ca=Ba.border);null!=Ba.gradient?mxClient.IS_IE&&10>document.documentMode?ba.style.filter="progid:DXImageTransform.Microsoft.Gradient(StartColorStr='"+Ba.fill+"', EndColorStr='"+Ba.gradient+"', GradientType=0)":ba.style.backgroundImage="linear-gradient("+Ba.fill+" 0px,"+Ba.gradient+" 100%)":Ba.fill==mxConstants.NONE?ba.style.background="url('"+Dialog.prototype.noColorImage+"')":ba.style.backgroundColor=""==Ba.fill?mxUtils.getValue(O.defaultVertexStyle, mxConstants.STYLE_FILLCOLOR,Editor.isDarkMode()?Editor.darkColor:"#ffffff"):Ba.fill||mxUtils.getValue(O.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,Editor.isDarkMode()?Editor.darkColor:"#ffffff");ba.style.border=Ba.stroke==mxConstants.NONE?ca+" transparent":""==Ba.stroke?ca+" "+mxUtils.getValue(O.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?"#ffffff":Editor.darkColor):ca+" "+(Ba.stroke||mxUtils.getValue(O.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()? "#ffffff":Editor.darkColor));null!=Ba.title&&ba.setAttribute("title",Ba.title)}else{ca=mxUtils.getValue(O.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,"#ffffff");var qa=mxUtils.getValue(O.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,"#000000");ba.style.backgroundColor=ca;ba.style.border="1px solid "+qa}ba.style.borderRadius="0";P.appendChild(ba)});P.innerText="";for(var Ca=0;Ca<da.length;Ca++)0<Ca&&0==mxUtils.mod(Ca,4)&&mxUtils.br(P),za(da[Ca])});null==this.format.currentScheme?Y(Math.min(W.length-
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
[],H={},O=0;O<g.length;O++){var P=this.getTagsForCell(g[O]);if(0<P.length){P=P.split(" ");for(var V=0;V<P.length;V++)null==H[P[V]]&&(H[P[V]]=!0,y.push(P[V]))}}return y};Graph.prototype.getTagsForCell=function(g){return this.getAttributeForCell(g,"tags","")};Graph.prototype.addTagsForCells=function(g,y){if(0<g.length&&0<y.length){this.model.beginUpdate();try{for(var H=0;H<g.length;H++){for(var O=this.getTagsForCell(g[H]),P=O.split(" "),V=!1,R=0;R<y.length;R++){var W=mxUtils.trim(y[R]);""!=W&&0>mxUtils.indexOf(P,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
ma.join(" ")}null!=ia?(O=ia,O.className+=" "+aa,P=la,ka.className="geTempDlgCreateBtn"):(P=O=null,ka.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function C(ia,aa){if(null!=P){var la=function(sa){ja.isExternal?K(ja,function(ta){ma(ta,sa)},oa):ja.url?mxUtils.get(TEMPLATE_PATH+"/"+ja.url,mxUtils.bind(this,function(ta){200<=ta.getStatus()&&299>=ta.getStatus()?ma(ta.getText(),sa):oa()})):ma(b.emptyDiagramXml,sa)},ma=function(sa,ta){e||b.hideDialog(!0);f(sa,ta,ja,aa)},oa=function(){k(mxResources.get("cannotLoad"));
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
H&&y(Editor.svgBrokenImage.src)};P.src=g}}catch(V){y(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(g,y,H,O){null==O&&(O=this.createImageUrlConverter());var P=0,V=H||{};H=mxUtils.bind(this,function(R,W){R=g.getElementsByTagName(R);for(var X=0;X<R.length;X++)mxUtils.bind(this,function(Z){try{if(null!=Z){var Y=O.convert(Z.getAttribute(W));if(null!=Y&&"data:"!=Y.substring(0,5)){var ea=V[Y];null==ea?(P++,this.convertImageToDataUri(Y,function(fa){null!=fa&&(V[Y]=fa,Z.setAttribute(W, fa));P--;0==P&&y(g)})):Z.setAttribute(W,ea)}else null!=Y&&Z.setAttribute(W,Y)}}catch(fa){}})(R[X])});H("image","xlink:href");H("img","src");0==P&&y(g)};Editor.base64Encode=function(g){for(var y="",H=0,O=g.length,P,V,R;H<O;){P=g.charCodeAt(H++)&255;if(H==O){y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(P>>2);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((P&3)<<4);y+="==";break}V=g.charCodeAt(H++);if(H==O){y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(P>>
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(c,e){var k=this.getCurrentFile();null!=k?k.getComments(c,e):c([])};EditorUi.prototype.addComment=function(c,e,k){var q=this.getCurrentFile();null!=q?q.addComment(c,e,k):e(Date.now())};EditorUi.prototype.canReplyToReplies=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
this.sidebarContainer.style.bottom=e?"32px":"0px";this.sidebarContainer.style.width="100%"}null!=this.format&&(c=this.isDefaultTheme(c)||"atlas"==c,this.format.showCloseButton!=c&&(this.format.showCloseButton=c,this.format.refresh()))};EditorUi.prototype.getWindows=function(){var c=[this.sidebarWindow,this.formatWindow,this.freehandWindow];null!=this.actions&&(c=c.concat([this.actions.outlineWindow,this.actions.layersWindow]));null!=this.menus&&(c=c.concat([this.menus.tagsWindow,this.menus.findWindow, this.menus.findReplaceWindow,this.menus.commentsWindow]));return c};EditorUi.prototype.fitWindows=function(){for(var c=this.getWindows(),e=0;e<c.length;e++)null!=c[e]&&c[e].window.fit()};EditorUi.prototype.hideWindows=function(){for(var c=this.getWindows(),e=0;e<c.length;e++)null!=c[e]&&c[e].window.setVisible(!1)};EditorUi.prototype.destroyWindows=function(){null!=this.sidebarWindow&&(this.sidebarWindow.destroy(),this.sidebarWindow=null);null!=this.formatWindow&&(this.formatWindow.destroy(),this.formatWindow=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
DrawioFile.prototype.patch=function(b,f,m,d){if(null!=b){var u=this.ui.editor.undoManager,v=u.history.slice(),D=u.indexOfNextAdd,F=this.ui.editor.graph;F.container.style.visibility="hidden";var K=this.changeListenerEnabled;this.changeListenerEnabled=m;var M=F.foldingEnabled,G=F.mathEnabled,S=F.cellRenderer.redraw;F.cellRenderer.redraw=function(J){J.view.graph.isEditing(J.cell)&&(J.view.graph.scrollCellToVisible(J.cell),J.view.graph.cellEditor.resize());S.apply(this,arguments)};F.model.beginUpdate();
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
g[1].geometry.width)/2:(P.x+P.width)/R-V.x+-y.x+10,g[1].geometry.y-=g[1].geometry.height+y.y+40):(g[1].geometry.x=U==mxConstants.DIRECTION_WEST?g[1].geometry.x-(g[1].geometry.width+y.x+40):g[1].geometry.x+(g[1].geometry.width-y.x+40),g[1].geometry.y=null==P?A.geometry.y+(A.geometry.height-g[1].geometry.height)/2:(P.y+P.height)/R-V.y+-y.y+10);return e.addCells(g,Q)}finally{e.model.endUpdate()}}function S(A,N,Q){A=e.getOutgoingTreeEdges(A);Q=e.view.getState(Q);var L=[];if(null!=Q&&null!=A){for(var U= 0;U<A.length;U++){var g=e.view.getState(e.model.getTerminal(A[U],!1));null!=g&&(!N&&Math.min(g.x+g.width,Q.x+Q.width)>=Math.max(g.x,Q.x)||N&&Math.min(g.y+g.height,Q.y+Q.height)>=Math.max(g.y,Q.y))&&L.push(g)}L.sort(function(y,H){return N?y.x+y.width-H.x-H.width:y.y+y.height-H.y-H.height})}return L}function J(A,N){var Q=F(A),L=N==mxConstants.DIRECTION_EAST||N==mxConstants.DIRECTION_WEST;(Q==mxConstants.DIRECTION_EAST||Q==mxConstants.DIRECTION_WEST)==L&&Q!=N?c.actions.get("selectParent").funct():Q==
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
function(V,R,W,X,Z,Y){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(V+Z,R),this.lineTo(V+W-Z,R),this.quadTo(V+W,R,V+W,R+Y),this.lineTo(V+W,R+X-Y),this.quadTo(V+W,R+X,V+W-Z,R+X),this.lineTo(V+Z,R+X),this.quadTo(V,R+X,V,R+X-Y),this.lineTo(V,R+Y),this.quadTo(V,R,V+Z,R))};g.prototype.drawPath=function(V){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),V)}catch(W){}this.passThrough=!1}else if(null!=this.nextShape){for(var R in V)this.nextShape.options[R]=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
f.w,f.h,f,f.aspect,f.title);mxEvent.addListener(c,"dragleave",function(T){e.style.cursor="";for(var l=mxEvent.getSource(T);null!=l;){if(l==c||l==e){T.stopPropagation();T.preventDefault();break}l=l.parentNode}});var I=function(T){return function(l,n,z,E,A,N,Q,L,U){null!=U&&(/(\.v(dx|sdx?))($|\?)/i.test(U.name)||/(\.vs(x|sx?))($|\?)/i.test(U.name))?b.importVisio(U,mxUtils.bind(this,function(g){F(g,n,z,E,A,N,Q,"fixed",mxEvent.isAltDown(T)?null:Q.substring(0,Q.lastIndexOf(".")).replace(/_/g," "))})): null!=U&&(new XMLHttpRequest).upload&&b.isRemoteFileFormat(l,U.name)?b.isExternalDataComms()?b.parseFile(U,mxUtils.bind(this,function(g){4==g.readyState&&(b.spinner.stop(),200<=g.status&&299>=g.status&&(F(g.responseText,n,z,E,A,N,Q,"fixed",mxEvent.isAltDown(T)?null:Q.substring(0,Q.lastIndexOf(".")).replace(/_/g," ")),c.scrollTop=c.scrollHeight))})):(b.spinner.stop(),b.showError(mxResources.get("error"),mxResources.get("notInOffline"))):(F(l,n,z,E,A,N,Q,"fixed",mxEvent.isAltDown(T)?null:Q.substring(0, Q.lastIndexOf(".")).replace(/_/g," ")),c.scrollTop=c.scrollHeight)}};mxEvent.addListener(c,"dragover",K);mxEvent.addListener(c,"drop",M);mxEvent.addListener(e,"dragover",K);mxEvent.addListener(e,"drop",M);m.appendChild(c);d=document.createElement("div");d.style.textAlign="right";d.style.marginTop="20px";S=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});S.setAttribute("id","btnCancel");S.className="geBtn";b.editor.cancelFirst&&d.appendChild(S);"draw.io"!=b.getServiceName()||
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}c.actions.get("print").funct=function(){c.showDialog((new PrintDialog(c)).container,360,null!=c.pages&&1<c.pages.length?470:390,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var T=e.getExportVariables;e.getExportVariables=function(){var L=T.apply(this,arguments),U=c.getCurrentFile();null!=U&&(L.filename=U.getTitle());
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
t.getGlobalVariable=function(T){return"page"==T?B.getName():"pagenumber"==T?1:I.apply(this,arguments)};document.body.appendChild(t.container);t.model.setRoot(B.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(T){try{null==C&&(C=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var l=T.toDataURL("image/png");l=Editor.writeGraphModelToPng(l,"tEXt","mxfile",encodeURIComponent(C));c(l.substring(l.lastIndexOf(",")+1));t!=this.editor.graph&&t.container.parentNode.removeChild(t.container)}catch(n){null!=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
t=[];p.onsuccess=function(x){null==x.target.result?c(t):(t.push(x.target.result.value),x.target.result.continue())};p.onerror=e}catch(x){null!=e&&e(x)}}),e)};EditorUi.prototype.getDatabaseItemKeys=function(c,e,k){this.openDatabase(mxUtils.bind(this,function(q){try{k=k||"objects";var p=q.transaction([k],"readonly").objectStore(k).getAllKeys();p.onsuccess=function(){c(p.result)};p.onerror=e}catch(t){null!=e&&e(t)}}),e)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
return O==N||0==H.length?G(A,N):P==V?M(A):K(A,N!=mxConstants.DIRECTION_NORTH&&N!=mxConstants.DIRECTION_WEST)}return T.apply(this,arguments)};e.getSubtree=function(A){var N=[A];!u(A)&&!d(A)||D(A)||e.traverse(A,!0,function(Q,L){var U=null!=L&&e.isTreeEdge(L);U&&0>mxUtils.indexOf(N,L)&&N.push(L);(null==L||U)&&0>mxUtils.indexOf(N,Q)&&N.push(Q);return null==L||U});return N};var l=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){l.apply(this,arguments);(u(this.state.cell)||d(this.state.cell))&& !D(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title","Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(A){this.graph.graphHandler.start(this.state.cell, mxEvent.getClientX(A),mxEvent.getClientY(A),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(A);this.graph.isMouseDown=!0;c.hoverIcons.reset();mxEvent.consume(A)})))};var n=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){n.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
O.y||0<O.height)&&mxUtils.intersects(K,new mxRectangle(U.x,U.y+(O.y-O.height-1)*W+(0==O.y?U.height:0),U.width,1))&&(X="row-resize")),U=this.view.getState(this.model.getParent(U.cell))}null!=X&&L.setCursor(X)}}}),mouseUp:mxUtils.bind(this,function(K,U){m=h=n=t=null})})}this.cellRenderer.minSvgStrokeWidth=.1;this.cellRenderer.getLabelValue=function(K){var U=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);K.view.graph.isHtmlLabel(K.cell)&&(1!=K.style.html?U=mxUtils.htmlEntities(U,!1):(K.lastLabelValue!= U&&(K.lastLabelValue=U,K.lastSanitizedLabelValue=Graph.sanitizeHtml(U)),U=K.lastSanitizedLabelValue));return U};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);this.connectionHandler.insertBeforeSource=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
e.addListener(mxEvent.SIZE,f);e.container.addEventListener("scroll",d);e.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(x){G=x;S.style.background=G.bkgClr;q()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(x,C,I,B){if(m&&4<x.height||!m&&4<x.width){if(null!=M.guidePart)try{c.putImageData(M.guidePart.imgData1, M.guidePart.x1,M.guidePart.y1),c.putImageData(M.guidePart.imgData2,M.guidePart.x2,M.guidePart.y2),c.putImageData(M.guidePart.imgData3,M.guidePart.x3,M.guidePart.y3)}catch(g){}var T=M.origGuideMove.apply(this,arguments);try{c.lineWidth=.5;c.strokeStyle=G.guideClr;c.setLineDash([2]);if(m){var l=x.y+T.y+K-this.graph.container.scrollTop;var n=0;var z=l+x.height/2;var E=K/2;var A=l+x.height;var N=0;var Q=c.getImageData(n,l-1,K,3);k(n,l,K,l);l--;var L=c.getImageData(E,z-1,K,3);k(E,z,K,z);z--;var U=c.getImageData(N, A-1,K,3);k(N,A,K,A);A--}else l=0,n=x.x+T.x+K-this.graph.container.scrollLeft,z=K/2,E=n+x.width/2,A=0,N=n+x.width,Q=c.getImageData(n-1,l,3,K),k(n,l,n,K),n--,L=c.getImageData(E-1,z,3,K),k(E,z,E,K),E--,U=c.getImageData(N-1,A,3,K),k(N,A,N,K),N--;if(null==M.guidePart||M.guidePart.x1!=n||M.guidePart.y1!=l)M.guidePart={imgData1:Q,x1:n,y1:l,imgData2:L,x2:E,y2:z,imgData3:U,x3:N,y3:A}}catch(g){}}else T=M.origGuideMove.apply(this,arguments);return T};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
sa.innerText=ja;ha.appendChild(sa);qa.appendChild(ha);mxEvent.addListener(ha,"click",function(){function La(){var ya=Ga.querySelector(".geTemplateDrawioCatLink");null!=ya?ya.click():setTimeout(La,200)}fa=!0;var Ga=L.querySelector(".geTemplatesList");Ga.style.display="block";Ba.style.width="";xa.style.display="";xa.value="";Y=null;La()});na.style.display=ia.length<=la?"none":""}function l(ia,aa,la){function ma(Ka,Xa){Ka=mxResources.get(Ka,null,Ka.substring(0,1).toUpperCase()+Ka.substring(1));var Pa=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
function mxDualRuler(b,f){var m=new mxPoint(mxRuler.prototype.RULER_THICKNESS,mxRuler.prototype.RULER_THICKNESS);this.editorUiGetDiagContOffset=b.getDiagramContainerOffset;b.getDiagramContainerOffset=function(){return m};this.editorUiRefresh=b.refresh;this.ui=b;this.origGuideMove=mxGuide.prototype.move;this.origGuideDestroy=mxGuide.prototype.destroy;this.vRuler=new mxRuler(b,f,!0);this.hRuler=new mxRuler(b,f,!1,!0);f=mxUtils.bind(this,function(d){var u=!1;mxEvent.addGestureListeners(d,mxUtils.bind(this, function(v){u=null!=b.currentMenu;mxEvent.consume(v)}),null,mxUtils.bind(this,function(v){if(b.editor.graph.isEnabled()&&!b.editor.graph.isMouseDown&&(mxEvent.isTouchEvent(v)||mxEvent.isPopupTrigger(v))){b.editor.graph.popupMenuHandler.hideMenu();b.hideCurrentMenu();if(!mxEvent.isTouchEvent(v)||!u){var D=new mxPopupMenu(mxUtils.bind(this,function(M,G){b.menus.addMenuItems(M,["points","inches","millimeters","meters"],G)}));D.div.className+=" geMenubarMenu";D.smartSeparators=!0;D.showDisabled=!0;D.autoExpand= !0;D.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(D,arguments);b.resetCurrentMenu();D.destroy()});var F=mxEvent.getClientX(v),K=mxEvent.getClientY(v);D.popup(F,K,null,v);b.setCurrentMenu(D,d)}mxEvent.consume(v)}}))});f(this.hRuler.container);f(this.vRuler.container);this.vRuler.drawRuler();this.hRuler.drawRuler()}mxDualRuler.prototype.updateStyle=function(){this.vRuler.updateStyle();this.hRuler.updateStyle();this.vRuler.drawRuler();this.hRuler.drawRuler()};
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
(ja?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");L.querySelector("."+aa).src="/images/"+la+"-sel.svg";L.querySelector("."+oa).src="/images/"+ha+".svg";return!0}function t(ia,aa,la,ma){function oa(ta,La){null==ja?(ta=/^https?:\/\//.test(ta)&&!b.editor.isCorsEnabledForUrl(ta)?PROXY_URL+"?url="+encodeURIComponent(ta):TEMPLATE_PATH+"/"+ta,mxUtils.get(ta,mxUtils.bind(this,function(Ga){200<=Ga.getStatus()&&299>=Ga.getStatus()&&(ja=Ga.getText());La(ja)}))):La(ja)}function ha(ta,La,Ga){if(null!=ta&& mxUtils.isAncestorNode(document.body,aa)&&(ta=mxUtils.parseXml(ta),ta=Editor.extractGraphModel(ta.documentElement,!0),null!=ta)){"mxfile"==ta.nodeName&&(ta=Editor.parseDiagramNode(ta.getElementsByTagName("diagram")[0]));var ya=new mxCodec(ta.ownerDocument),Ja=new mxGraphModel;ya.decode(ta,Ja);ta=Ja.root.getChildAt(0).children||[];b.sidebar.createTooltip(aa,ta,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-80,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight|| document.body.clientHeight)-80,800),null!=ia.title?mxResources.get(ia.title,null,ia.title):null,!0,new mxPoint(La,Ga),!0,null,!0);var Ma=document.createElement("div");Ma.className="geTempDlgDialogMask";L.appendChild(Ma);var ra=b.sidebar.hideTooltip;b.sidebar.hideTooltip=function(){Ma&&(L.removeChild(Ma),Ma=null,ra.apply(this,arguments),b.sidebar.hideTooltip=ra)};mxEvent.addListener(Ma,"click",function(){b.sidebar.hideTooltip()})}}var ja=null;if(pa||b.sidebar.currentElt==aa)b.sidebar.hideTooltip(); else{var sa=function(ta){pa&&b.sidebar.currentElt==aa&&ha(ta,mxEvent.getClientX(ma),mxEvent.getClientY(ma));pa=!1;la.src="/images/icon-search.svg"};b.sidebar.hideTooltip();b.sidebar.currentElt=aa;pa=!0;la.src="/images/aui-wait.gif";ia.isExt?K(ia,sa,function(){k(mxResources.get("cantLoadPrev"));pa=!1;la.src="/images/icon-search.svg"}):oa(ia.url,sa)}}function x(ia,aa,la){if(null!=O){for(var ma=O.className.split(" "),oa=0;oa<ma.length;oa++)if(-1<ma[oa].indexOf("Active")){ma.splice(oa,1);break}O.className=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
this.editor.graph.mathEnabled&&this.editor.addMathCss(N);var U=mxUtils.bind(this,function(g){t?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(g,L,this.thumbImageCache)):L(g)});n?this.embedFonts(N,U):(this.editor.addFontCss(N),U(N))}catch(g){this.handleError(g)}};EditorUi.prototype.addRadiobox=function(c,e,k,q,p,t,x){return this.addCheckbox(c,k,q,p,t,x,!0,e)};EditorUi.prototype.addCheckbox=function(c,e,k,q,p,t,x,C){t=null!=t?t:!0;var I=document.createElement("input");
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
function(c){var e=this.editor.graph.view.scale,k=this.editor.graph.view.translate,q=mxUtils.getOffset(this.diagramContainer);this.diagramContainer.scrollLeft=c.x+q.x+(k.x-c.tx)*e;this.diagramContainer.scrollTop=c.y+q.y+(k.y-c.ty)*e};EditorUi.prototype.setInlineFullscreen=function(c){Editor.inlineFullscreen!=c&&(this.diagramContainer.setAttribute("data-scrollState",JSON.stringify(this.saveScrollState())),(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:c,rect:this.diagramContainer.getBoundingClientRect()}),
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
if(null!=y&&(null!=y&&"<"!=y.charAt(0)&&"%"!=y.charAt(0)&&(y=unescape(window.atob?atob(y):Base64.decode(cont,y))),null!=y&&"%"==y.charAt(0)&&(y=decodeURIComponent(y)),null!=y&&0<y.length)){var H=mxUtils.parseXml(y).documentElement;return"mxfile"==H.nodeName||"mxGraphModel"==H.nodeName}}catch(O){}return!1};Editor.prototype.extractGraphModel=function(g,y,H){return Editor.extractGraphModel.apply(this,arguments)};var m=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled= "1"==urlParams.math;this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();m.apply(this,arguments)};var d=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){d.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
parentRow:Ta,isDeletable:!0,flipBkg:Ia}));btn=mxUtils.button("+",mxUtils.bind(Y,function(Sa){for(var Ha=Ta,Va=0;null!=Ha.nextSibling;)if(Ha.nextSibling.getAttribute("data-pName")==pa)Ha=Ha.nextSibling,Va++;else break;var Ua={type:va,parentRow:Ta,index:Va,isDeletable:!0,defVal:Ea,countProperty:Da};Va=Z(pa,"",Ua,0==Va%2,Ia);O(pa,Ea,Ua);Ha.parentNode.insertBefore(Va,Ha.nextSibling);mxEvent.consume(Sa)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function W(pa, ua,va,Ea,Da,Ta,Ia){if(0<Da){var Sa=Array(Da);ua=null!=ua?ua.split(","):[];for(var Ha=0;Ha<Da;Ha++)Sa[Ha]=null!=ua[Ha]?ua[Ha]:null!=Ea?Ea:"";fa.push({name:pa,values:Sa,type:va,defVal:Ea,parentRow:Ta,flipBkg:Ia,size:Da})}return document.createElement("div")}function X(pa,ua,va){var Ea=document.createElement("input");Ea.type="checkbox";Ea.checked="1"==ua;mxEvent.addListener(Ea,"change",function(){O(pa,Ea.checked?"1":"0",va)});return Ea}function Z(pa,ua,va,Ea,Da){var Ta=va.dispName,Ia=va.type,Sa=document.createElement("tr");
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
mxUtils.bind(this,function(){this.window.fit()}));this.window.addListener("hide",mxUtils.bind(this,function(){D.freehand.isDrawing()&&D.freehand.stopDrawing()}));b.installResizeHandler(this,!1)},TagsWindow=function(b,f,m,d,u){var v=b.editor.graph,D=b.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return this.window.isVisible()}),null,function(K,M){if(v.isEnabled()){var G=new FilenameDialog(b,"",mxResources.get("add"),function(S){b.hideDialog();if(null!=S&&0<S.length){S=S.split(" ");for(var J= [],c=0;c<S.length;c++){var e=mxUtils.trim(S[c]);""!=e&&0>mxUtils.indexOf(K,e)&&J.push(e)}0<J.length&&(v.isSelectionEmpty()?M(K.concat(J)):v.addTagsForCells(v.getSelectionCells(),J))}},mxResources.get("enterValue")+" ("+mxResources.get("tags")+")");b.showDialog(G.container,300,80,!0,!0);G.init()}}),F=D.div;this.window=new mxWindow(mxResources.get("tags"),F,f,m,d,u,!0,!0);this.window.minimumSize=new mxRectangle(0,0,212,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0); this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){D.refresh();this.window.fit()}));b.installResizeHandler(this,!0)},AuthDialog=function(b,f,m,d){var u=document.createElement("div");u.style.textAlign="center";var v=document.createElement("p");v.style.fontSize="16pt";v.style.padding="0px";v.style.margin="0px";v.style.color="gray";mxUtils.write(v,mxResources.get("authorizationRequired"));var D="Unknown",F=document.createElement("img");F.setAttribute("border","0");
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,x,null,1<C,I,q,t,p);C=this.isServices(C)?4<C?390:280:160;this.showDialog(c.container,420,C,!0,!0);c.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(c,e,k,q,p,t){};EditorUi.prototype.pickFolder=function(c,e,k){e(null)};EditorUi.prototype.exportSvg=function(c,e,k,q,
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
mxUtils.bind(this,function(Na){O=b.sidebar.currentElt==ra}),null,null),mxEvent.addListener(ha,"click",mxUtils.bind(this,function(Na){O||Ma(Na,null!=ma?ma:oa);mxEvent.consume(Na)})));ca.appendChild(ra);return ra}function l(){function aa(ra,Fa){ra=mxResources.get(ra,null,ra.substring(0,1).toUpperCase()+ra.substring(1));18<ra.length&&(ra=ra.substring(0,18)+"&hellip;");return ra+(null!=Fa?" ("+Fa.length+")":"")}function la(ra,Fa,Ka){mxEvent.addListener(Fa,"click",function(){Ia!=Fa&&(Ia.style.backgroundColor= "",Ia=Fa,Ia.style.backgroundColor=D,ca.scrollTop=0,ca.innerText="",Q=0,null!=ua[ra].content?(ca.appendChild(ua[ra].content),na=ba,Ha=null,null!=ua[ra].content.init&&ua[ra].content.init()):(Ha=Ka?va[ra][Ka]:ua[ra],V=null,t(!1)))});null!=urlParams["smart-template"]&&"smartTemplate"==ra&&Fa.click()}Ta&&(Ta=!1,mxEvent.addListener(ca,"scroll",function(ra){ca.scrollTop+ca.clientHeight>=ca.scrollHeight&&(t(),mxEvent.consume(ra))}));if(0<Da){var ma=document.createElement("div");ma.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.diffPage=function(b,f){var m=[],d=[],u={};this.updatePageRoot(b);this.updatePageRoot(f);f=this.createCellLookup(f.root);var v=this.diffCellRecursive(b.root,null,f,v,d),D;for(D in f)b=f[D],m.push(this.getJsonForCell(b.cell,b.prev));mxUtils.isEmptyObject(v)||(u[EditorUi.DIFF_UPDATE]=v);0<d.length&&(u[EditorUi.DIFF_REMOVE]=d);0<m.length&&(u[EditorUi.DIFF_INSERT]=m);return u};
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
var CommentsWindow=function(b,f,m,d,u,v){function D(){for(var n=t.getElementsByTagName("div"),z=0,E=0;E<n.length;E++)"none"!=n[E].style.display&&n[E].parentNode==t&&z++;x.style.display=0==z?"block":"none"}function F(n,z,E,A){function N(){z.removeChild(U);z.removeChild(g);L.style.display="block";Q.style.display="block"}k={div:z,comment:n,saveCallback:E,deleteOnCancel:A};var Q=z.querySelector(".geCommentTxt"),L=z.querySelector(".geCommentActionsList"),U=document.createElement("textarea");U.className= "geCommentEditTxtArea";U.style.minHeight=Q.offsetHeight+"px";U.value=n.content;z.insertBefore(U,Q);var g=document.createElement("div");g.className="geCommentEditBtns";var y=mxUtils.button(mxResources.get("cancel"),function(){A?(z.parentNode.removeChild(z),D()):N();k=null});y.className="geCommentEditBtn";g.appendChild(y);var H=mxUtils.button(mxResources.get("save"),function(){Q.innerText="";n.content=U.value;mxUtils.write(Q,n.content);N();E(n);k=null});mxEvent.addListener(U,"keydown",mxUtils.bind(this, function(O){mxEvent.isConsumed(O)||((mxEvent.isControlDown(O)||mxClient.IS_MAC&&mxEvent.isMetaDown(O))&&13==O.keyCode?(H.click(),mxEvent.consume(O)):27==O.keyCode&&(y.click(),mxEvent.consume(O)))}));H.focus();H.className="geCommentEditBtn gePrimaryBtn";g.appendChild(H);z.insertBefore(g,Q);L.style.display="none";Q.style.display="none";U.focus()}function K(n,z){z.innerText="";n=new Date(n.modifiedDate);var E=b.timeSince(n);null==E&&(E=mxResources.get("lessThanAMinute"));mxUtils.write(z,mxResources.get("timeAgo",
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe
"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var B=mxUtils.parseXml(I).getElementsByTagName("svg");if(0<B.length&&"error"!=B[0].getAttribute("aria-roledescription")){var T=parseFloat(B[0].getAttribute("width")),l=parseFloat(B[0].getAttribute("height"));if(isNaN(T)||isNaN(l))try{var n=B[0].getAttribute("viewBox").split(/\s+/);T=parseFloat(n[2]);l=parseFloat(n[3])}catch(z){T=T||100,l=l||100}k(this.convertDataUri(Editor.createSvgDataUri(I)),T,l)}else null!=p?p():q({message:mxResources.get("invalidInput")})}catch(z){q(z)}});
1
JavaScript
CWE-79
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.
https://cwe.mitre.org/data/definitions/79.html
safe