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 |
|---|---|---|---|---|---|---|---|
function(){});this.inlineSizeChanged()};EditorUi.prototype.installImagePasteHandler=function(){if(!mxClient.IS_IE){var c=this.editor.graph;c.container.addEventListener("paste",mxUtils.bind(this,function(e){if(!mxEvent.isConsumed(e))try{for(var g=e.clipboardData||e.originalEvent.clipboardData,q=!1,p=0;p<g.types.length;p++)if("text/"===g.types[p].substring(0,5)){q=!0;break}if(!q){var t=g.items;for(index in t){var x=t[index];if("file"===x.kind){if(c.isEditing())this.importFiles([x.getAsFile()],0,0,this.maxImageSize,
function(I,A,S,l,n,z){c.insertImage(I,n,z)},function(){},function(I){return"image/"==I.type.substring(0,6)},function(I){for(var A=0;A<I.length;A++)I[A]()});else{var B=this.editor.graph.getInsertPoint();this.importFiles([x.getAsFile()],B.x,B.y,this.maxImageSize);mxEvent.consume(e)}break}}}}catch(I){}}),!1)}};EditorUi.prototype.installNativeClipboardHandler=function(){function c(){window.setTimeout(function(){g.innerHTML=" ";g.focus();document.execCommand("selectAll",!1,null)},0)}var e=this.editor.graph, | 0 | 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 | vulnerable |
function(k,y){for(var G=0;G<y.length;G++){var P=y[G],Q;for(Q in P)this.updateCustomLinkAction(k,P[Q],"cells"),this.updateCustomLinkAction(k,P[Q],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(k,y,G){if(null!=y&&null!=y[G]){for(var P=[],Q=0;Q<y[G].length;Q++)if("*"==y[G][Q])P.push(y[G][Q]);else{var U=k[y[G][Q]];null!=U?""!=U&&P.push(U):P.push(y[G][Q])}y[G]=P}};Graph.prototype.getCellsForAction=function(k,y){y=this.getCellsById(k.cells).concat(this.getCellsForTags(k.tags,null,y));
if(null!=k.excludeCells){for(var G=[],P=0;P<y.length;P++)0>k.excludeCells.indexOf(y[P].id)&&G.push(y[P]);y=G}return y};Graph.prototype.getCellsById=function(k){var y=[];if(null!=k)for(var G=0;G<k.length;G++)if("*"==k[G]){var P=this.model.getRoot();y=y.concat(this.model.filterDescendants(function(U){return U!=P},P))}else{var Q=this.model.getCell(k[G]);null!=Q&&y.push(Q)}return y};var C=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(k){return C.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(k))}; | 0 | 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 | vulnerable |
EditorUi.prototype.getPngFileProperties=function(c){var e=1,g=0;if(null!=c){if(c.hasAttribute("scale")){var q=parseFloat(c.getAttribute("scale"));!isNaN(q)&&0<q&&(e=q)}c.hasAttribute("border")&&(q=parseInt(c.getAttribute("border")),!isNaN(q)&&0<q&&(g=q))}return{scale:e,border:g}};EditorUi.prototype.getEmbeddedPng=function(c,e,g,q,p){try{var t=this.editor.graph,x=null!=t.themes&&"darkTheme"==t.defaultThemeName,B=null;if(null!=g&&0<g.length)t=this.createTemporaryGraph(x?t.getDefaultStylesheet():t.getStylesheet()), | 0 | 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 | vulnerable |
null!=this.currentState&&K.getState()==this.currentState&&2E3<F||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&R.apply(this,arguments)};var S=this.isToggleEvent;this.isToggleEvent=function(K){return S.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(K)};var Q=G.isForceRubberbandEvent;G.isForceRubberbandEvent=function(K){return Q.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(K.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&
mxClient.IS_FF&&mxClient.IS_WIN&&null==K.getState()&&mxEvent.isTouchEvent(K.getEvent())};var Y=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(Y=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=Y)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(K){return mxEvent.isMouseEvent(K.getEvent())}; | 0 | 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 | vulnerable |
[1])),e.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,e.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=g)for(p=0;p<g.length;p++)e.model.execute(new ChangePage(this,g[p],null))}finally{e.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,e,g,q,p,t,x,B,I,A,S){e=null!=e?e:this.editor.graph;p=null!=p?p:!1;I=null!=I?I:!0;S=null!= | 0 | 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 | vulnerable |
k);mxEvent.addListener(this.container,"mousemove",k);mxEvent.addListener(this.container,"mouseleave",function(Q){y=null});this.isMouseInsertPoint=function(){return null!=y};var G=this.getInsertPoint;this.getInsertPoint=function(){return null!=y?this.getPointForEvent(y):G.apply(this,arguments)};var P=this.layoutManager.getLayout;this.layoutManager.getLayout=function(Q){var U=this.graph.getCellStyle(Q);if(null!=U&&"rack"==U.childLayout){var T=new mxStackLayout(this.graph,!1);T.gridSize=null!=U.rackUnitSize? | 0 | 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 | vulnerable |
function(g,q,p){mxCellRenderer.prototype.installCellOverlayListeners.apply(this,arguments);mxEvent.addListener(p.node,mxClient.IS_POINTER?"pointerdown":"mousedown",function(t){q.fireEvent(new mxEventObject("pointerdown","event",t,"state",g))});!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&mxEvent.addListener(p.node,"touchstart",function(t){q.fireEvent(new mxEventObject("pointerdown","event",t,"state",g))})};v.getAllConnectionConstraints=function(){return null};v.connectionHandler.marker.highlight.keepOnTop= | 0 | 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 | vulnerable |
p,t,x){J.apply(this,arguments);R()};v.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);R()};v.connectionHandler.addListener(mxEvent.CONNECT,function(){R()})}var c=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){null!=u.parentNode&&(v.destroy(),u.parentNode.removeChild(u));b.hideDialog()})});c.className="geBtn";b.editor.cancelFirst&&d.appendChild(c);var e=mxUtils.button(mxResources.get("insert"),function(g){v.clearCellOverlays(); | 0 | 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 | vulnerable |
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=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&& | 0 | 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 | vulnerable |
document.createElement("canvas");C.width=S;C.height=l;var D=C.toDataURL();z!==D&&(e=z,B=S,I=l)}}}catch(M){}g(e,B,I)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};EditorUi.prototype.loadImage=function(c,e,g){try{var q=new Image;q.onload=function(){q.width=0<q.width?q.width:120;q.height=0<q.height?q.height:120;e(q)};null!=g&&(q.onerror=g);q.src=c}catch(p){if(null!=g)g(p);else throw p;}};EditorUi.prototype.getDefaultSketchMode=function(){var c="1"== | 0 | 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 | vulnerable |
"keys",Da,"values",Ta,"cells",ca.getSelectionCells()))}finally{ca.getModel().endUpdate()}}function Q(pa,ua,va){var Ea=mxUtils.getOffset(k,!0),Da=mxUtils.getOffset(pa,!0);ua.style.position="absolute";ua.style.left=Da.x-Ea.x+"px";ua.style.top=Da.y-Ea.y+"px";ua.style.width=pa.offsetWidth+"px";ua.style.height=pa.offsetHeight-(va?4:0)+"px";ua.style.zIndex=5}function U(pa,ua,va){var Ea=document.createElement("div");Ea.style.width="32px";Ea.style.height="4px";Ea.style.margin="2px";Ea.style.border="1px solid black"; | 0 | 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 | vulnerable |
k[1].geometry.width)/2:(Q.x+Q.width)/T-U.x+-y.x+10,k[1].geometry.y-=k[1].geometry.height+y.y+40):(k[1].geometry.x=V==mxConstants.DIRECTION_WEST?k[1].geometry.x-(k[1].geometry.width+y.x+40):k[1].geometry.x+(k[1].geometry.width-y.x+40),k[1].geometry.y=null==Q?D.geometry.y+(D.geometry.height-k[1].geometry.height)/2:(Q.y+Q.height)/T-U.y+-y.y+10);return e.addCells(k,K)}finally{e.model.endUpdate()}}function R(D,M,K){D=e.getOutgoingTreeEdges(D);K=e.view.getState(K);var O=[];if(null!=K&&null!=D){for(var V=
0;V<D.length;V++){var k=e.view.getState(e.model.getTerminal(D[V],!1));null!=k&&(!M&&Math.min(k.x+k.width,K.x+K.width)>=Math.max(k.x,K.x)||M&&Math.min(k.y+k.height,K.y+K.height)>=Math.max(k.y,K.y))&&O.push(k)}O.sort(function(y,G){return M?y.x+y.width-G.x-G.width:y.y+y.height-G.y-G.height})}return O}function J(D,M){var K=F(D),O=M==mxConstants.DIRECTION_EAST||M==mxConstants.DIRECTION_WEST;(K==mxConstants.DIRECTION_EAST||K==mxConstants.DIRECTION_WEST)==O&&K!=M?c.actions.get("selectParent").funct():K== | 0 | 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 | vulnerable |
[J]);return J};var G=new mxRubberband(this);this.getRubberband=function(){return G};var D=(new Date).getTime(),F=0,N=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var K=this.currentState;N.apply(this,arguments);K!=this.currentState?(D=(new Date).getTime(),F=0):F=(new Date).getTime()-D};var R=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(K){return mxEvent.isShiftDown(K.getEvent())&&mxEvent.isAltDown(K.getEvent())?!1: | 0 | 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 | vulnerable |
p=mxUtils.getXml(g.encodeCells(q));mxUtils.setTextContent(c,encodeURIComponent(p));e?(g.removeCells(q,!1),g.lastPasteXml=null):(g.lastPasteXml=p,g.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}; | 0 | 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 | vulnerable |
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,x,null,1<B,I,q,t,p);B=this.isServices(B)?4<B?390:280:160;this.showDialog(c.container,420,B,!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,g,q,p,t){};EditorUi.prototype.pickFolder=function(c,e,g){e(null)};EditorUi.prototype.exportSvg=function(c,e,g,q, | 0 | 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 | vulnerable |
(q<<5)-q+this.hashValue(c.childNodes[p],e,g)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);e=0;null!=g&&(g.byteCount+=c.length);for(p=0;p<c.length;p++)e=(e<<5)-e+c.charCodeAt(p)<<0;q^=e}return q};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,e,g,q,p,t,x){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&& | 0 | 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 | vulnerable |
e.appendChild(this.sidebar.createVertexTemplateFromCells(p,q.w,q.h,q.title||"",!0,null,!0)))}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};EditorUi.prototype.footerHeight=0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"atlas"==Editor.currentTheme&&(mxClient.link("stylesheet",STYLE_PATH+"/atlas.css"),"undefined"!==typeof Toolbar&&(Toolbar.prototype.unselectedBackground="linear-gradient(rgb(255, 255, 255) 0px, rgb(242, 242, 242) 100%)",
Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=3,EditorUi.prototype.menubarHeight=41,EditorUi.prototype.toolbarHeight=38);"sketch"==Editor.currentTheme&&(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(c,e,g,q,p,t,x){c=new ImageDialog(this,c,e,g,q,p,t,x);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);c.init()}; | 0 | 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 | vulnerable |
db=cb[bb].url;Graph.isCssFontUrl(db)?Za.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(db)+'" charset="UTF-8" type="text/css">'):(Za.writeln('<style type="text/css">'),Za.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(eb)+'";\nsrc: url("'+mxUtils.htmlEntities(db)+'");\n}'),Za.writeln("</style>"))}};if("undefined"!==typeof MathJax){var ib=Ja.renderPage;Ja.renderPage=function(Za,cb,bb,eb,db,kb){var jb=mxClient.NO_FO,fb=ib.apply(this,arguments);mxClient.NO_FO=jb;this.graph.mathEnabled?
this.mathEnabled=this.mathEnabled||!0:fb.className="geDisableMathJax";return fb}}Na=null;Ya=Q.shapeForegroundColor;$a=Q.shapeBackgroundColor;Wa=Q.enableFlowAnimation;Q.enableFlowAnimation=!1;null!=Q.themes&&"darkTheme"==Q.defaultThemeName&&(Na=Q.stylesheet,Q.stylesheet=Q.getDefaultStylesheet(),Q.shapeForegroundColor="#000000",Q.shapeBackgroundColor="#ffffff",Q.refresh());Ja.open(null,null,Ma,!0,ra);Q.enableFlowAnimation=Wa;null!=Na&&(Q.shapeForegroundColor=Ya,Q.shapeBackgroundColor=$a,Q.stylesheet= | 0 | 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 | vulnerable |
null,x,mxResources.get("cancel"),mxResources.get("discardChanges")):x()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var c={};if(null!=this.pages)for(var e=0;e<this.pages.length;e++)this.updatePageRoot(this.pages[e]),this.addBasenamesForCell(this.pages[e].root,c);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),c);e=[];for(var g in c)e.push(g);return e};EditorUi.prototype.addBasenamesForCell=function(c,e){function g(x){if(null!= | 0 | 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 | vulnerable |
if(null==ma&&(fa=oa.indexOf("/"),ma=oa.substring(0,fa),null==la)){var ja=oa.indexOf("/",fa+1);-1<ja&&(la=oa.substring(fa+1,ja))}fa=Ea[ma];null==fa&&(Sa++,fa=[],Ea[ma]=fa);oa=ia.getAttribute("clibs");null!=aa[oa]&&(oa=aa[oa]);oa={url:ia.getAttribute("url"),libs:ia.getAttribute("libs"),title:ia.getAttribute("title")||ia.getAttribute("name"),preview:ia.getAttribute("preview"),clibs:oa,tags:ia.getAttribute("tags")};fa.push(oa);null!=la&&(fa=Da[ma],null==fa&&(fa={},Da[ma]=fa),ma=fa[la],null==ma&&(ma=[],
fa[la]=ma),ma.push(oa))}ia=ia.nextSibling}l(Ea,Ta,Ha)}})}function z(ia){E&&(Ba.scrollTop=0,ea.innerText="",Qa.spin(ea),k=!1,V=!0,za.innerText=mxResources.get("recentDiag"),Z=null,E(Va,function(){g(mxResources.get("cannotLoad"));Va([])},ia?null:v))}function C(ia){if(""==ia)null!=G&&(G.click(),G=null);else{if(null==TemplatesDialog.tagsList[d]){var aa={};for(La in Ea)for(var la=Ea[La],ma=0;ma<la.length;ma++){var oa=la[ma];if(null!=oa.tags)for(var fa=oa.tags.toLowerCase().split(";"),ja=0;ja<fa.length;ja++)null== | 0 | 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 | vulnerable |
C.translate(Math.floor((1-n.x)/z),Math.floor((1-n.y)/z));C.scale(1/z);var M=0,K=C.save;C.save=function(){M++;K.apply(this,arguments)};var O=C.restore;C.restore=function(){M--;O.apply(this,arguments)};var V=l.drawShape;l.drawShape=function(k){mxLog.debug("entering shape",k,M);V.apply(this,arguments);mxLog.debug("leaving shape",k,M)};l.drawState(u.getView().getState(u.model.root),C);mxLog.show();mxLog.debug(mxUtils.getXml(D));mxLog.debug("stateCounter",M)}));d.actions.addAction("testShowConsole",function(){mxLog.isVisible()? | 0 | 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 | vulnerable |
Editor.createRoughCanvas=function(k){var y=rough.canvas({getContext:function(){return k}});y.draw=function(G){var P=G.sets||[];G=G.options||this.getDefaultOptions();for(var Q=0;Q<P.length;Q++){var U=P[Q];switch(U.type){case "path":null!=G.stroke&&this._drawToContext(k,U,G);break;case "fillPath":this._drawToContext(k,U,G);break;case "fillSketch":this.fillSketch(k,U,G)}}};y.fillSketch=function(G,P,Q){var U=k.state.strokeColor,T=k.state.strokeWidth,W=k.state.strokeAlpha,X=k.state.dashed,Y=Q.fillWeight;
0>Y&&(Y=Q.strokeWidth/2);k.setStrokeAlpha(k.state.fillAlpha);k.setStrokeColor(Q.fill||"");k.setStrokeWidth(Y);k.setDashed(!1);this._drawToContext(G,P,Q);k.setDashed(X);k.setStrokeWidth(T);k.setStrokeColor(U);k.setStrokeAlpha(W)};y._drawToContext=function(G,P,Q){G.begin();for(var U=0;U<P.ops.length;U++){var T=P.ops[U],W=T.data;switch(T.op){case "move":G.moveTo(W[0],W[1]);break;case "bcurveTo":G.curveTo(W[0],W[1],W[2],W[3],W[4],W[5]);break;case "lineTo":G.lineTo(W[0],W[1])}}G.end();"fillPath"===P.type&&
Q.filled?G.fill():G.stroke()};return y};(function(){function k(U,T,W){this.canvas=U;this.rc=T;this.shape=W;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,k.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,k.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,k.prototype.rect);this.originalRoundrect=this.canvas.roundrect;this.canvas.roundrect= | 0 | 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 | vulnerable |
za,this.stylesheet=ea,this.refresh());return Ba};var I=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(k){I.apply(this,arguments);null!=k.secondLabel&&(k.secondLabel.destroy(),k.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(k){return[k.shape,k.text,k.secondLabel,k.control]};var A=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){A.apply(this,arguments);this.enumerationState=0};var S=mxGraphView.prototype.stateValidated; | 0 | 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 | vulnerable |
EditorUi.prototype.updateDiagram=function(c){function e(V){var k=new mxCellOverlay(V.image||p.warningImage,V.tooltip,V.align,V.valign,V.offset);k.addListener(mxEvent.CLICK,function(y,G){q.alert(V.tooltip)});return k}var g=null,q=this;if(null!=c&&0<c.length&&(g=mxUtils.parseXml(c),c=null!=g?g.documentElement:null,null!=c&&"updates"==c.nodeName)){var p=this.editor.graph,t=p.getModel();t.beginUpdate();var x=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var B=t.getCell(c.getAttribute("id")); | 0 | 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 | vulnerable |
mxEvent.getClientX(K),mxEvent.getClientY(K)),G.start(K.x,K.y)):null!=qa?this.addSelectionCells(qa):1<this.getSelectionCount()&&this.isCellSelected(L)&&this.removeSelectionCell(L);qa=null;U.consume()}}));this.connectionHandler.selectCells=function(K,U){this.graph.setSelectionCell(U||K)};this.connectionHandler.constraintHandler.isStateIgnored=function(K,U){var L=K.view.graph;return U&&(L.isCellSelected(K.cell)||L.isTableRow(K.cell)&&L.selectionCellsHandler.isHandled(L.model.getParent(K.cell)))};this.selectionModel.addListener(mxEvent.CHANGE, | 0 | 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 | vulnerable |
arguments);null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var v=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){v.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var E=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(J,c){null!=c.shortcut&&900>d&&!mxClient.IS_IOS?J.firstChild.nextSibling.setAttribute("title",
c.shortcut):E.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(); | 0 | 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 | vulnerable |
H.createVertexHandler=function(){var Q=S.apply(this,arguments);Q.livePreview=!1;return Q};if(null!=m)try{if("inset"==m.substring(0,5)){var l=c.geometry,n=L.width,z=L.height,C=(300-n)/2,D=(300-z)/2,M=m.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),K=parseFloat(M[0]),O=parseFloat(M[1]),V=parseFloat(M[2]),k=parseFloat(M[3]);isFinite(K)&&isFinite(O)&&isFinite(V)&&isFinite(k)?(l.x=k/100*n+C,l.y=K/100*z+D,l.width=(100-O)/100*n+C-l.x,l.height=(100-V)/100*z+D-l.y,"round"==M[4]?"50%"==M[5]?p.setAttribute("checked", | 0 | 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 | vulnerable |
y,G,P){for(var Q=0;Q<P;Q++)k=Editor.crcTable[(k^y.charCodeAt(G+Q))&255]^k>>>8;return k};Editor.crc32=function(k){for(var y=-1,G=0;G<k.length;G++)y=y>>>8^Editor.crcTable[(y^k.charCodeAt(G))&255];return(y^-1)>>>0};Editor.writeGraphModelToPng=function(k,y,G,P,Q){function U(Z,ca){var ha=X;X+=ca;return Z.substring(ha,X)}function T(Z){Z=U(Z,4);return Z.charCodeAt(3)+(Z.charCodeAt(2)<<8)+(Z.charCodeAt(1)<<16)+(Z.charCodeAt(0)<<24)}function W(Z){return String.fromCharCode(Z>>24&255,Z>>16&255,Z>>8&255,Z&255)} | 0 | 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 | vulnerable |
"pHYs","dpi",q));else throw{message:mxResources.get("unknownError")};return c};EditorUi.prototype.saveCanvas=function(c,e,g,q,p){var t="jpeg"==g?"jpg":g;q=this.getBaseFilename(q)+(null!=e?".drawio":"")+"."+t;c=this.createImageDataUri(c,e,g,p);this.saveData(q,t,c.substring(c.lastIndexOf(",")+1),"image/"+g,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=
document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,e){c=new TextareaDialog(this,c,e,null,null,mxResources.get("close"));this.showDialog(c.container,620,460,!0,!0,null,null,null,null,!0);c.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(c,e,g,q,p,t){"text/xml"!=g||/(\.drawio)$/i.test(e)||/(\.xml)$/i.test(e)||/(\.svg)$/i.test(e)||/(\.html)$/i.test(e)||(e=e+"."+(null!=t?t:"drawio")); | 0 | 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 | vulnerable |
function(P){mxEvent.isConsumed(P)||((mxEvent.isControlDown(P)||mxClient.IS_MAC&&mxEvent.isMetaDown(P))&&13==P.keyCode?(G.click(),mxEvent.consume(P)):27==P.keyCode&&(y.click(),mxEvent.consume(P)))}));G.focus();G.className="geCommentEditBtn gePrimaryBtn";k.appendChild(G);z.insertBefore(k,K);O.style.display="none";K.style.display="none";V.focus()}function L(n,z){z.innerText="";n=new Date(n.modifiedDate);var C=b.timeSince(n);null==C&&(C=mxResources.get("lessThanAMinute"));mxUtils.write(z,mxResources.get("timeAgo",
[C],"{1} ago"));z.setAttribute("title",n.toLocaleDateString()+" "+n.toLocaleTimeString())}function N(n){var z=document.createElement("img");z.className="geCommentBusyImg";z.src=IMAGE_PATH+"/spin.gif";n.appendChild(z);n.busyImg=z}function H(n){n.style.border="1px solid red";n.removeChild(n.busyImg)}function R(n){n.style.border="";n.removeChild(n.busyImg)}function J(n,z,C,D,M){function K(U,T,W){var X=document.createElement("li");X.className="geCommentAction";var Y=document.createElement("a");Y.className= | 0 | 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 | vulnerable |
0>Y&&(Y=Q.strokeWidth/2);k.setStrokeAlpha(k.state.fillAlpha);k.setStrokeColor(Q.fill||"");k.setStrokeWidth(Y);k.setDashed(!1);this._drawToContext(G,P,Q);k.setDashed(X);k.setStrokeWidth(T);k.setStrokeColor(U);k.setStrokeAlpha(W)};y._drawToContext=function(G,P,Q){G.begin();for(var U=0;U<P.ops.length;U++){var T=P.ops[U],W=T.data;switch(T.op){case "move":G.moveTo(W[0],W[1]);break;case "bcurveTo":G.curveTo(W[0],W[1],W[2],W[3],W[4],W[5]);break;case "lineTo":G.lineTo(W[0],W[1])}}G.end();"fillPath"===P.type&&
Q.filled?G.fill():G.stroke()};return y};(function(){function k(U,T,W){this.canvas=U;this.rc=T;this.shape=W;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,k.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,k.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,k.prototype.rect);this.originalRoundrect=this.canvas.roundrect;this.canvas.roundrect= | 0 | 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 | vulnerable |
46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.styleElt=document.createElement("style");Editor.styleElt.type="text/css";Editor.styleElt.innerHTML=Editor.createMinimalCss();document.getElementsByTagName("head")[0].appendChild(Editor.styleElt);Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var u=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(J){u.apply(this,
arguments);null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var v=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){v.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var E=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(J,c){null!=c.shortcut&&900>d&&!mxClient.IS_IOS?J.firstChild.nextSibling.setAttribute("title", | 0 | 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 | vulnerable |
0;U<T.length;U++)T[U].parentNode.removeChild(T[U]);R(k);k.style.opacity="0.5"}else{T=O(n).replies;for(U=0;U<T.length;U++)t.removeChild(T[U]);for(U=0;U<z.length;U++)if(z[U]==n){z.splice(U,1);break}x.style.display=0==t.getElementsByTagName("div").length?"block":"none"}},function(U){H(k);b.handleError(U,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},n.isResolved));c||n.isLocked||0!=D||K(n.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(U){function T(){var W=
U.target;W.innerText="";n.isResolved=!n.isResolved;mxUtils.write(W,n.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var X=n.isResolved?"none":"",Y=O(n).replies,Z=Editor.isDarkMode()?"transparent":n.isResolved?"ghostWhite":"white",ca=0;ca<Y.length;ca++){Y[ca].style.backgroundColor=Z;for(var ha=Y[ca].querySelectorAll(".geCommentAction"),na=0;na<ha.length;na++)ha[na]!=W.parentNode&&(ha[na].style.display=X);A||(Y[ca].style.display="none")}E()}n.isResolved?V(mxResources.get("reOpened")+ | 0 | 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 | vulnerable |
null!=this.currentState&&K.getState()==this.currentState&&2E3<F||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&R.apply(this,arguments)};var S=this.isToggleEvent;this.isToggleEvent=function(K){return S.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(K)};var Q=G.isForceRubberbandEvent;G.isForceRubberbandEvent=function(K){return Q.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(K.getEvent())||mxUtils.hasScrollbars(this.graph.container)&& | 0 | 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 | vulnerable |
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,arguments)};var z=this.graphHandler.getCells;this.graphHandler.getCells= | 0 | 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 | vulnerable |
mxUtils.bind(this,function(U){window.clearTimeout(P);G&&y(Editor.createSvgDataUri(U.getText()))}),function(){window.clearTimeout(P);G&&y(Editor.svgBrokenImage.src)});else{var Q=new Image;this.crossOriginImages&&(Q.crossOrigin="anonymous");Q.onload=function(){window.clearTimeout(P);if(G)try{var U=document.createElement("canvas"),T=U.getContext("2d");U.height=Q.height;U.width=Q.width;T.drawImage(Q,0,0);y(U.toDataURL())}catch(W){y(Editor.svgBrokenImage.src)}};Q.onerror=function(){window.clearTimeout(P);
G&&y(Editor.svgBrokenImage.src)};Q.src=k}}catch(U){y(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(k,y,G,P){null==P&&(P=this.createImageUrlConverter());var Q=0,U=G||{};G=mxUtils.bind(this,function(T,W){T=k.getElementsByTagName(T);for(var X=0;X<T.length;X++)mxUtils.bind(this,function(Y){try{if(null!=Y){var Z=P.convert(Y.getAttribute(W));if(null!=Z&&"data:"!=Z.substring(0,5)){var ca=U[Z];null==ca?(Q++,this.convertImageToDataUri(Z,function(ha){null!=ha&&(U[Z]=ha,Y.setAttribute(W, | 0 | 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 | vulnerable |
"/txt/":"png"==e?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(B){r="";for(i=0;i<B.length;i+=3)r=i+2==B.length?r+p(B.charCodeAt(i),B.charCodeAt(i+1),0):i+1==B.length?r+p(B.charCodeAt(i),0,0):r+p(B.charCodeAt(i),B.charCodeAt(i+1),B.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(c))),!0);"txt"!=e&&(x.responseType="blob");x.onload=function(B){if(200<=this.status&&300>this.status)if("txt"==e)g(this.response);else{var I=new FileReader;I.readAsDataURL(this.response);I.onloadend=function(A){var S=
new Image;S.onload=function(){try{var l=S.width,n=S.height;if(0==l&&0==n){var z=I.result,C=z.indexOf(","),D=decodeURIComponent(escape(atob(z.substring(C+1)))),M=mxUtils.parseXml(D).getElementsByTagName("svg");0<M.length&&(l=parseFloat(M[0].getAttribute("width")),n=parseFloat(M[0].getAttribute("height")))}g(I.result,l,n)}catch(K){q(K)}};S.src=I.result};I.onerror=function(A){q(A)}}else q(B)};x.onerror=function(B){q(B)};x.send()};EditorUi.prototype.insertAsPreText=function(c,e,g){var q=this.editor.graph, | 0 | 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 | vulnerable |
q;for(q in urlParams)0>mxUtils.indexOf(g,q)&&(c=0==e?c+"?":c+"&",null!=urlParams[q]&&(c+=q+"="+urlParams[q],e++))}return c};EditorUi.prototype.showLinkDialog=function(c,e,g,q,p){c=new LinkDialog(this,c,e,g,!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|| | 0 | 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 | vulnerable |
p?4E3:3E4);A=!0}return A};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(c,e,g,q){c=c.toDataURL("image/"+g);if(null!=c&&6<c.length)null!=e&&(c=Editor.writeGraphModelToPng(c,"tEXt","mxfile",encodeURIComponent(e))),0<q&&(c=Editor.writeGraphModelToPng(c, | 0 | 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 | vulnerable |
this.timeout),B=mxUtils.bind(this,function(){window.clearTimeout(x);t&&q.apply(this,arguments)}),I=mxUtils.bind(this,function(){window.clearTimeout(x);t&&p.apply(this,arguments)});g=g||{};g.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:B,error:I});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:e,msgMarkers:g});null!=this.remoteWin?this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,
e){var g=mxUtils.bind(this,function(A,S){var l={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=S?l.error={errResp:S}:null!=A&&(l.resp=A);this.remoteWin.postMessage(JSON.stringify(l),"*")});try{var q=c.funtionName,p=this.remoteInvokableFns[q];if(null!=p&&"function"===typeof this[q]){if(p.allowedDomains){for(var t=!1,x=0;x<p.allowedDomains.length;x++)if(e=="https://"+p.allowedDomains[x]){t=!0;break}if(!t){g(null,"Invalid Call: "+q+" is not allowed.");return}}var B=c.functionArgs;Array.isArray(B)||
(B=[]);if(p.isAsync)B.push(function(){g(Array.prototype.slice.apply(arguments))}),B.push(function(A){g(null,A||"Unkown Error")}),this[q].apply(this,B);else{var I=this[q].apply(this,B);g([I])}}else g(null,"Invalid Call: "+q+" is not found.")}catch(A){g(null,"Invalid Call: An error occurred, "+A.message)}};EditorUi.prototype.openDatabase=function(c,e){if(null==this.database){var g=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=g)try{var q=g.open("database",2);q.onupgradeneeded= | 0 | 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 | vulnerable |
[C],"{1} ago"));z.setAttribute("title",n.toLocaleDateString()+" "+n.toLocaleTimeString())}function N(n){var z=document.createElement("img");z.className="geCommentBusyImg";z.src=IMAGE_PATH+"/spin.gif";n.appendChild(z);n.busyImg=z}function H(n){n.style.border="1px solid red";n.removeChild(n.busyImg)}function R(n){n.style.border="";n.removeChild(n.busyImg)}function J(n,z,C,D,M){function K(U,T,W){var X=document.createElement("li");X.className="geCommentAction";var Y=document.createElement("a");Y.className= | 0 | 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 | vulnerable |
function(){var c=document.createElement("div");c.className="geButtonContainer";c.style.overflow="1"==urlParams.embed?"hidden":"";return c};EditorUi.prototype.openLink=function(c,e,g){return this.editor.graph.openLink(c,e,g)};EditorUi.prototype.showSplash=function(c){};EditorUi.prototype.getLocalData=function(c,e){e(localStorage.getItem(c))};EditorUi.prototype.setLocalData=function(c,e,g){localStorage.setItem(c,e);null!=g&&g()};EditorUi.prototype.removeLocalData=function(c,e){localStorage.removeItem(c); | 0 | 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 | vulnerable |
this.diagramContainer.scrollLeft+=c.x-e.x;this.diagramContainer.scrollTop+=c.x-e.x};EditorUi.prototype.setDarkMode=function(c){this.doSetDarkMode(c,mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("darkModeChanged"))}),mxUtils.bind(this,function(e){null!=window.console&&console.error(e);this.editor.setStatus(e.message)}))};EditorUi.prototype.createDarkStyle=function(){var c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("href",STYLE_PATH+"/dark.css");
c.setAttribute("charset","UTF-8");c.setAttribute("type","text/css");return c};EditorUi.prototype.doSetDarkMode=function(c,e,g){var q=mxUtils.bind(this,function(){if(Editor.darkMode!=c){var t=this.editor.graph;Editor.darkMode=c;this.spinner.opts.color=Editor.isDarkMode()?"#c0c0c0":"#000";t.view.defaultGridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultDarkGridColor:mxGraphView.prototype.defaultGridColor;t.view.gridColor=t.view.defaultGridColor;t.defaultPageBackgroundColor="1"==urlParams.embedInline? | 0 | 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 | vulnerable |
else if("svg"==g)c.hideDialog(),c.saveData(e,"svg",mxUtils.getXml(I.getSvg(q,p,t)),"image/svg+xml");else{var A=c.getFileData(!0,null,null,null,null,!0),S=I.getGraphBounds(),l=Math.floor(S.width*p/I.view.scale),n=Math.floor(S.height*p/I.view.scale);if(A.length<=MAX_REQUEST_SIZE&&l*n<MAX_AREA)if(c.hideDialog(),"png"!=g&&"jpg"!=g&&"jpeg"!=g||!c.isExportToCanvas()){var z={globalVars:I.getExportVariables()};B&&(z.grid={size:I.gridSize,steps:I.view.gridSteps,color:I.view.gridColor});c.saveRequest(e,g,function(C,
D){return new mxXmlRequest(EXPORT_URL,"format="+g+"&base64="+(D||"0")+(null!=C?"&filename="+encodeURIComponent(C):"")+"&extras="+encodeURIComponent(JSON.stringify(z))+(0<x?"&dpi="+x:"")+"&bg="+(null!=q?q:"none")+"&w="+l+"&h="+n+"&border="+t+"&xml="+encodeURIComponent(A))})}else"png"==g?c.exportImage(p,null==q||"none"==q,!0,!1,!1,t,!0,!1,null,B,x):c.exportImage(p,!1,!0,!1,!1,t,!0,!1,"jpeg",B);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1); | 0 | 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 | vulnerable |
k+'";\nsrc: url("'+y+'");\n}'),k=document.createElement("style"),mxUtils.write(k,G));return k};Graph.addFont=function(k,y,G){if(null!=k&&0<k.length&&null!=y&&0<y.length){var P=k.toLowerCase();if("helvetica"!=P&&"arial"!=k&&"sans-serif"!=P){var Q=Graph.customFontElements[P];null!=Q&&Q.url!=y&&(Q.elt.parentNode.removeChild(Q.elt),Q=null);null==Q?(Q=y,"http:"==y.substring(0,5)&&(Q=PROXY_URL+"?url="+encodeURIComponent(y)),Q={name:k,url:y,elt:Graph.createFontElement(k,Q)},Graph.customFontElements[P]=Q,
Graph.recentCustomFonts[P]=Q,y=document.getElementsByTagName("head")[0],null!=G&&("link"==Q.elt.nodeName.toLowerCase()?(Q.elt.onload=G,Q.elt.onerror=G):G()),null!=y&&y.appendChild(Q.elt)):null!=G&&G()}else null!=G&&G()}else null!=G&&G();return k};Graph.getFontUrl=function(k,y){k=Graph.customFontElements[k.toLowerCase()];null!=k&&(y=k.url);return y};Graph.processFontAttributes=function(k){k=k.getElementsByTagName("*");for(var y=0;y<k.length;y++){var G=k[y].getAttribute("data-font-src");if(null!=G){var P= | 0 | 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 | vulnerable |
"transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin",null);0==p&&q()}),300)}),10)};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var L=EditorUi.prototype.isFormatPanelVisible; | 0 | 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 | vulnerable |
EditorUi.prototype.isResampleImageSize=function(c,e){e=null!=e?e:this.resampleThreshold;return c>e};EditorUi.prototype.resizeImage=function(c,e,g,q,p,t,x){p=null!=p?p:this.maxImageSize;var B=Math.max(1,c.width),I=Math.max(1,c.height);if(q&&this.isResampleImageSize(null!=x?x:e.length,t))try{var A=Math.max(B/p,I/p);if(1<A){var S=Math.round(B/A),l=Math.round(I/A),n=document.createElement("canvas");n.width=S;n.height=l;n.getContext("2d").drawImage(c,0,0,S,l);var z=n.toDataURL();if(z.length<e.length){var C=
document.createElement("canvas");C.width=S;C.height=l;var D=C.toDataURL();z!==D&&(e=z,B=S,I=l)}}}catch(M){}g(e,B,I)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};EditorUi.prototype.loadImage=function(c,e,g){try{var q=new Image;q.onload=function(){q.width=0<q.width?q.width:120;q.height=0<q.height?q.height:120;e(q)};null!=g&&(q.onerror=g);q.src=c}catch(p){if(null!=g)g(p);else throw p;}};EditorUi.prototype.getDefaultSketchMode=function(){var c="1"== | 0 | 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 | vulnerable |
k.prototype.lineTo=function(U,T){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,U,T),this.lastX=U,this.lastY=T)};k.prototype.moveTo=function(U,T){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,U,T),this.lastX=U,this.lastY=T,this.firstX=U,this.firstY=T)};k.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};k.prototype.quadTo=function(U,T,W,X){this.passThrough? | 0 | 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 | vulnerable |
preview:aa.getAttribute("preview"),clibs:fa,tags:aa.getAttribute("tags")};ja.push(fa);null!=ma&&(ja=va[oa],null==ja&&(ja={},va[oa]=ja),oa=ja[ma],null==oa&&(oa=[],ja[ma]=oa),oa.push(fa))}aa=aa.nextSibling}O.stop();l()}})};z.appendChild(qa);z.appendChild(wa);z.appendChild(da);var Ua=!1,ia=H;/^https?:\/\//.test(ia)&&!b.editor.isCorsEnabledForUrl(ia)&&(ia=PROXY_URL+"?url="+encodeURIComponent(ia));O.spin(da);null!=q?q(function(aa,la){Ea=aa;W=Da=la;Va()},Va):Va();T=ua}mxEvent.addListener(M,"keypress",function(aa){b.dialog.container.firstChild== | 0 | 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 | vulnerable |
function(ha){"true"!=W.getAttribute("contentEditable")&&mxEvent.consume(ha)});U=function(ha){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||9<document.documentMode)){var na=new FilenameDialog(b,X.title||"",mxResources.get("ok"),function(ea){null!=ea&&(X.title=ea,V())},mxResources.get("enterValue"));b.showDialog(na.container,300,80,!0,!0);na.init();mxEvent.consume(ha)}else if("true"!=W.getAttribute("contentEditable")){null!=t&&(t(),t=null);if(null==X.title||0==X.title.length)W.innerText=
"";W.style.textOverflow="";W.style.whiteSpace="";W.style.cursor="text";W.style.color="";W.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(W.style,"user-select","text");W.focus();document.execCommand("selectAll",!1,null);t=function(){W.removeAttribute("contentEditable");W.style.cursor="pointer";X.title=W.innerHTML;V()};mxEvent.consume(ha)}};mxEvent.addListener(W,"click",U);mxEvent.addListener(P,"dblclick",U);c.appendChild(P);mxEvent.addListener(P,"dragstart",function(ha){null==S&&null!= | 0 | 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 | vulnerable |
b.editor.graph.rendering=!1;H.getModel().beginUpdate();try{for(var y=0,G={};L(!1,!0,!0)&&100>y;){var P=J.cell,Q=H.getLabel(P),U=G[P.id];if(U&&U.replAllMrk==p&&U.replAllPos>=q)break;G[P.id]={replAllMrk:p,replAllPos:q};H.isCellEditable(P)&&(H.model.setValue(P,D(Q,g,I.value,q-g.length,H.getCurrentCellStyle(P))),y++)}V!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,V));mxUtils.write(C,mxResources.get("matchesRepl",[y]))}catch(T){b.handleError(T)}finally{H.getModel().endUpdate(),b.editor.graph.setSelectionCells(k),
b.editor.graph.rendering=!0}p++});O.setAttribute("title",mxResources.get("replaceAll"));O.style.float="none";O.style.width="120px";O.style.marginTop="6px";O.style.marginLeft="8px";O.style.overflow="hidden";O.style.textOverflow="ellipsis";O.className="geBtn gePrimaryBtn";O.setAttribute("disabled","disabled");x.appendChild(O);mxUtils.br(x);x.appendChild(n);n=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));n.setAttribute("title",mxResources.get("close")); | 0 | 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 | vulnerable |
Graph.prototype.createViewState=function(b){var f=b.getAttribute("page"),m=parseFloat(b.getAttribute("pageScale")),d=parseFloat(b.getAttribute("pageWidth")),u=parseFloat(b.getAttribute("pageHeight")),v=b.getAttribute("background"),E=this.parseBackgroundImage(b.getAttribute("backgroundImage")),F=b.getAttribute("extFonts");if(F)try{F=F.split("|").map(function(L){L=L.split("^");return{name:L[0],url:L[1]}})}catch(L){console.log("ExtFonts format error: "+L.message)}return{gridEnabled:"0"!=b.getAttribute("grid"),
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:E,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||[]}}; | 0 | 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 | vulnerable |
function(){d.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(C){d.handleError(C)}})}]];if(!d.isOfflineApp()&&isLocalStorage&&d.mode!=App.MODE_ATLAS){var z=d.actions.get("plugins");null==z||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||n.push([mxResources.get("plugins"),z.funct])}EditorUi.isElectronApp||n.push([mxResources.get("link"), | 0 | 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 | vulnerable |
"cells",[C])),b.fireEvent(new mxEventObject("freehandInserted","cell",C))}finally{b.model.endUpdate()}q&&b.setSelectionCells([C])}}for(C=0;C<u.length;C++)u[C].parentNode.removeChild(u[C]);d=null;u=[];E=[]}x(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(z,C){z=C.getProperty("eventName");C=C.getProperty("event");z==mxEvent.MOUSE_MOVE&&e&&(null!=C.sourceState&&C.sourceState.setCursor("crosshair"),C.consume())}));b.addMouseListener({mouseDown:mxUtils.bind(this,function(z,C){if(b.isEnabled()&& | 0 | 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 | vulnerable |
c;this.editor.updateGraphComponents();this.editor.graph.refresh();this.editor.graph.defaultMathEnabled=c;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(c){return this.editor.graph.mathEnabled};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||this.isOfflineApp()};EditorUi.prototype.isOfflineApp=function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(c){return this.isOfflineApp()||
!navigator.onLine||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,e,g){var q=null==c||null==e;g=null!=g?g:24;var p=new Spinner({lines:12,length:g,width:Math.round(g/3),radius:Math.round(g/2),rotate:0,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),t=p.spin;p.spin=function(B,I){var A= | 0 | 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 | vulnerable |
function(){var c=document.createElement("div");c.className="geButtonContainer";c.style.overflow="1"==urlParams.embed?"hidden":"";return c};EditorUi.prototype.openLink=function(c,e,g){return this.editor.graph.openLink(c,e,g)};EditorUi.prototype.showSplash=function(c){};EditorUi.prototype.getLocalData=function(c,e){e(localStorage.getItem(c))};EditorUi.prototype.setLocalData=function(c,e,g){localStorage.setItem(c,e);null!=g&&g()};EditorUi.prototype.removeLocalData=function(c,e){localStorage.removeItem(c); | 0 | 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 | vulnerable |
"geBtn gePrimaryBtn";var k=document.createElement("img");k.setAttribute("src",Sidebar.prototype.searchImage);k.setAttribute("title",mxResources.get("preview"));k.className="geActiveButton";k.style.position="absolute";k.style.cursor="default";k.style.padding="8px";k.style.right="0px";k.style.top="0px";var y=!1,G=null,P=!1;if(R||J){var Q=[],U=null,T=null,W=null,X=function(aa){V.setAttribute("disabled","disabled");for(var la=0;la<Q.length;la++)Q[la].className=la==aa?"geBtn gePrimaryBtn":"geBtn"};C=!0; | 0 | 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 | vulnerable |
"center";m=mxUtils.button(mxResources.get("cancel"),function(){b.spinner.stop();b.hideDialog()});m.className="geBtn";b.editor.cancelFirst&&F.appendChild(m);ImageDialog.filePicked=function(x){x.action==google.picker.Action.PICKED&&null!=x.docs[0].thumbnails&&(x=x.docs[0].thumbnails[x.docs[0].thumbnails.length-1],null!=x&&(R.value=x.url));R.focus()};if(Graph.fileSupport){if(null==b.imgDlgFileInputElt){var p=document.createElement("input");p.setAttribute("multiple","multiple");p.setAttribute("type", | 0 | 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 | vulnerable |
mxUtils.bind(this,function(ha){this.cachedFonts[X]=ha;P--;Q()}),mxUtils.bind(this,function(ha){P--;Q()}),!0,null,"data:"+Z+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(G[k].substring(0,U)),T)}Q()}else y(k)};Editor.prototype.loadFonts=function(k){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(y){this.resolvedFontCss=y;null!=k&&k()})):null!=k&&k()};Editor.prototype.createGoogleFontCache=function(){var k={},y;for(y in Graph.fontMapping)Graph.isCssFontUrl(y)&&
(k[y]=Graph.fontMapping[y]);return k};Editor.prototype.embedExtFonts=function(k){var y=this.graph.getCustomFonts();if(0<y.length){var G=[],P=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var Q=mxUtils.bind(this,function(){0==P&&this.embedCssFonts(G.join(""),k)}),U=0;U<y.length;U++)mxUtils.bind(this,function(T,W){Graph.isCssFontUrl(W)?null==this.cachedGoogleFonts[W]?(P++,this.loadUrl(W,mxUtils.bind(this,function(X){this.cachedGoogleFonts[W]=X;G.push(X+"\n"); | 0 | 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 | vulnerable |
parseInt(ca.value))))}function P(Ta){function Ia(ya,Ja,Ma,ra){var Fa=ya.useCssTransforms,Ka=ya.currentTranslate,Xa=ya.currentScale,Pa=ya.view.translate,Ra=ya.view.scale;ya.useCssTransforms&&(ya.useCssTransforms=!1,ya.currentTranslate=new mxPoint(0,0),ya.currentScale=1,ya.view.translate=new mxPoint(0,0),ya.view.scale=1);var Oa=ya.getGraphBounds(),Na=0,Ya=0,Wa=Ea.get(),ab=1/ya.pageScale,$a=Ba.checked;if($a){ab=parseInt(ua.value);var gb=parseInt(va.value);ab=Math.min(Wa.height*gb/(Oa.height/ya.view.scale),
Wa.width*ab/(Oa.width/ya.view.scale))}else ab=parseInt(Ca.value)/(100*ya.pageScale),isNaN(ab)&&(Sa=1/ya.pageScale,Ca.value="100 %");Wa=mxRectangle.fromRectangle(Wa);Wa.width=Math.ceil(Wa.width*Sa);Wa.height=Math.ceil(Wa.height*Sa);ab*=Sa;!$a&&ya.pageVisible?(Oa=ya.getPageLayout(),Na-=Oa.x*Wa.width,Ya-=Oa.y*Wa.height):$a=!0;ra=null!=ra?"page/id,"+ra:null;if(null==Ja){Ja=PrintDialog.createPrintPreview(ya,ab,Wa,0,Na,Ya,$a);Ja.pageSelector=!1;Ja.mathEnabled=!1;na.checked&&(Ja.isCellVisible=function(Za){return ya.isCellSelected(Za)}); | 0 | 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 | vulnerable |
(ja?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");O.querySelector("."+aa).src="/images/"+la+"-sel.svg";O.querySelector("."+oa).src="/images/"+fa+".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 fa(ta,La,Ga){if(null!=ta&& | 0 | 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 | vulnerable |
!0),aa,1),J=a.getDefaultTranslate(W);this.x0=W.x;this.y0=W.y;a.setScrollbarPositions(e.currentPage.viewState,J.x,J.y);if(J.x!=this.translate.x||J.y!=this.translate.y){this.setTranslate(J.x,J.y);return}}W=a.getPagePadding();J=a.getPageSize();this.translate.x=W.x-(this.x0||0)*J.width;this.translate.y=W.y-(this.y0||0)*J.height}V.apply(this,arguments)};if(!a.isViewer()){var da=a.sizeDidChange;a.sizeDidChange=function(){if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();
if(!this.autoTranslate){var W=this.getPageLayout(),J=this.getDefaultTranslate(W),ha=this.view.translate.x,oa=this.view.translate.y;if(J.x!=ha||J.y!=oa){this.view.x0=W.x;this.view.y0=W.y;this.autoTranslate=!0;this.view.setTranslate(J.x,J.y);this.container.scrollLeft+=Math.round((J.x-ha)*this.view.scale);this.container.scrollTop+=Math.round((J.y-oa)*this.view.scale);this.autoTranslate=!1;return}}da.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var ja= | 0 | 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 | vulnerable |
"-rev_"+this.ui.hashValue(F):"")+(null!=p?"-latest_"+p:"")+(null!=g?"-latestRev_"+this.ui.hashValue(g.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+J,action:u,label:"user_"+R+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+f.length+"-size_"+this.getSize()})}catch(t){}}),b)}}catch(g){}}; | 0 | 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 | vulnerable |
null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(B){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(B){}}catch(B){this.fileLoadedError=B;if(null!=c)try{c.close()}catch(I){}if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logEvent({category:"ERROR-LOAD-FILE-"+(null!=c?c.getHash():"none"),action:"message_"+B.message,label:"stack_"+B.stack})}catch(I){}c=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,
mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=q?this.fileLoaded(q)||t():t()});e?c():this.handleError(B,mxResources.get("errorLoadingFile"),c,!0,null,null,!0)}else t();return p};EditorUi.prototype.getHashValueForPages=function(c,e){var g=0,q=new mxGraphModel,p=new mxCodec;null!=e&&(e.byteCount=0,e.attrCount=0,e.eltCount=0,e.nodeCount=0);for(var t=0;t<c.length;t++){this.updatePageRoot(c[t]);var x=c[t].node.cloneNode(!1);x.removeAttribute("name");q.root=c[t].root; | 0 | 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 | vulnerable |
function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.newComment=function(c,e){var g=this.getCurrentFile();return null!=g?g.newComment(c,e):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,e)};EditorUi.prototype.isRevisionHistorySupported=function(){var c=this.getCurrentFile();return null!=c&&c.isRevisionHistorySupported()};EditorUi.prototype.getRevisions= | 0 | 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 | vulnerable |
"sketchStyle","rough")?this.createComicCanvas(U):this.createRoughCanvas(U)};var G=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(U,T,W,X,Y){null!=U.handJiggle&&U.handJiggle.passThrough||G.apply(this,arguments)};var P=mxShape.prototype.paint;mxShape.prototype.paint=function(U){var T=U.addTolerance,W=!0;null!=this.style&&(W="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=U.handJiggle&&U.handJiggle.constructor==k&&!this.outline){U.save(); | 0 | 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 | vulnerable |
f.getCell(e),null!=c&&c!=J&&(J=null));null!=J&&(f.getChildAt(m,F)!=J&&f.add(m,J,F),this.patchCellRecursive(b,f,J,d,u),F++);return e});for(N=[null];0<N.length;)if(H=N.shift(),H=L(null!=H?H.child:null,null!=H?H.insert:!1),R=v[H],null!=R&&(delete v[H],N.push({child:f.getCell(R)})),R=E[H],null!=R&&(delete E[H],N.push({child:this.getCellForJson(R),insert:!0})),0==N.length){for(H in v)N.push({child:f.getCell(v[H])}),delete v[H];for(H in E)N.push({child:this.getCellForJson(E[H]),insert:!0}),delete E[H]}}}; | 0 | 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 | vulnerable |
function(z){H=z};this.setAutoScroll=function(z){R=z};this.setOpenFill=function(z){J=z};this.setStopClickEnabled=function(z){g=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); | 0 | 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 | vulnerable |
this.update)};var H=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?H.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(k){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var R=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(k){k=R.apply(this,arguments);var y=this.editorUi, | 0 | 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 | vulnerable |
null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(B){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(B){}}catch(B){this.fileLoadedError=B;if(null!=c)try{c.close()}catch(I){}if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logEvent({category:"ERROR-LOAD-FILE-"+(null!=c?c.getHash():"none"),action:"message_"+B.message,label:"stack_"+B.stack})}catch(I){}c=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,
mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=q?this.fileLoaded(q)||t():t()});e?c():this.handleError(B,mxResources.get("errorLoadingFile"),c,!0,null,null,!0)}else t();return p};EditorUi.prototype.getHashValueForPages=function(c,e){var g=0,q=new mxGraphModel,p=new mxCodec;null!=e&&(e.byteCount=0,e.attrCount=0,e.eltCount=0,e.nodeCount=0);for(var t=0;t<c.length;t++){this.updatePageRoot(c[t]);var x=c[t].node.cloneNode(!1);x.removeAttribute("name");q.root=c[t].root; | 0 | 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 | vulnerable |
A=new mxAsyncCanvas(this.thumbImageCache);I.images=this.thumbImageCache.images;var S=new mxImageExport;S.drawShape=function(l,n){l.shape instanceof mxShape&&l.shape.checkBounds()&&(n.save(),n.translate(.5,.5),l.shape.paint(n),n.translate(-.5,-.5),n.restore())};S.drawText=function(l,n){};S.drawState(E.getView().getState(E.model.root),A);A.finish(mxUtils.bind(this,function(){try{S.drawState(E.getView().getState(E.model.root),I),E!=this.editor.graph&&null!=E.container.parentNode&&E.container.parentNode.removeChild(E.container)}catch(l){R= | 0 | 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 | vulnerable |
parseFloat(U.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;T.marginLeft=U.marginLeft||0;T.marginRight=U.marginRight||0;T.marginTop=U.marginTop||0;T.marginBottom=U.marginBottom||0;T.allowGaps=U.allowGaps||0;T.horizontal="1"==mxUtils.getValue(U,"horizontalRack","0");T.resizeParent=!1;T.fill=!0;return T}return P.apply(this,arguments)};this.updateGlobalUrlVariables()};var g=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(k,y){return Graph.processFontStyle(g.apply(this,
arguments))};var q=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(k,y,G,P,Q,U,T,W,X,Y,Z){q.apply(this,arguments);Graph.processFontAttributes(Z)};var p=mxText.prototype.redraw;mxText.prototype.redraw=function(){p.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(k,y,G){function P(){for(var ea=T.getSelectionCells(),za=[],Ca=0;Ca<ea.length;Ca++)T.isCellVisible(ea[Ca])&& | 0 | 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 | vulnerable |
e;p.onerror=g;for(var t=0;t<q.length;t++)p.objectStore(q[t]).delete(c[t])}),g)};EditorUi.prototype.getDatabaseItem=function(c,e,g,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=g}catch(x){null!=g&&g(x)}}),g)};EditorUi.prototype.getDatabaseItems=function(c,e,g){this.openDatabase(mxUtils.bind(this,function(q){try{g=g||"objects";var p=q.transaction([g],"readonly").objectStore(g).openCursor(IDBKeyRange.lowerBound(0)), | 0 | 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 | vulnerable |
""),mxUtils.bind(this,function(e){window.clearTimeout(c);J&&(200<=e.getStatus()&&299>=e.getStatus()?null!=m&&m():d({message:mxResources.get("realtimeCollaboration")+(0!=e.getStatus()?": "+e.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"diff",N,R.length,"bytes","from",F,"to",L,"etag",this.file.getCurrentEtag(),"checksum",H)}}this.file.setShadowPages(b);this.scheduleCleanup()}; | 0 | 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 | vulnerable |
P(!1)}),ea.className="geBtn",y.appendChild(ea));ea=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){k.hideDialog();P(!0)});ea.className="geBtn gePrimaryBtn";y.appendChild(ea);k.editor.cancelFirst||y.appendChild(T);U.appendChild(y);this.container=U};var K=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==this.page&&(this.page=this.ui.currentPage);if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||(this.page.viewState.background=
this.color);if(!this.ignoreImage){var k=this.image;null!=k&&null!=k.src&&Graph.isPageLink(k.src)&&(k={originalSrc:k.src});this.page.viewState.backgroundImage=k}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else K.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),
this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var O=document.createElement("canvas"),V=new Image;V.onload=function(){try{O.getContext("2d").drawImage(V,0,0);var k=O.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=k&&6<k.length}catch(y){}};V.src="data:image/svg+xml;base64,"+ | 0 | 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 | vulnerable |
d.container.scrollTop=0,this.chromelessResize()));f||d.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",u))}}catch(E){this.handleError(E)}};EditorUi.prototype.selectNextPage=function(b){var f=this.currentPage;null!=f&&null!=this.pages&&(f=mxUtils.indexOf(this.pages,f),b?this.selectPage(this.pages[mxUtils.mod(f+1,this.pages.length)]):b||this.selectPage(this.pages[mxUtils.mod(f-1,this.pages.length)]))}; | 0 | 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 | vulnerable |
App.prototype.fileCreated=function(b,f,m,d,u,v){var E=window.location.pathname;null!=f&&0<f.length&&(E+="?libs="+f);null!=u&&0<u.length&&(E+="?clibs="+u);E=this.getUrl(E);b.getMode()!=App.MODE_DEVICE&&(E+="#"+b.getHash());if(this.spinner.spin(document.body,mxResources.get("inserting"))){var F=b.getData();F=0<F.length?this.editor.extractGraphModel(mxUtils.parseXml(F).documentElement,!0):null;var L=window.location.protocol+"//"+window.location.hostname+E,N=F,H=null;null!=F&&/\.svg$/i.test(b.getTitle())&&
(H=this.createTemporaryGraph(this.editor.graph.getStylesheet()),document.body.appendChild(H.container),N=this.decodeNodeIntoGraph(N,H));b.setData(this.createFileData(F,H,b,L));null!=H&&H.container.parentNode.removeChild(H.container);var R=mxUtils.bind(this,function(){this.spinner.stop()}),J=mxUtils.bind(this,function(){R();var c=this.getCurrentFile();null==m&&null!=c&&(m=!c.isModified()&&null==c.getMode());var e=mxUtils.bind(this,function(){window.openFile=null;this.fileLoaded(b,null,v);m&&b.addAllSavedStatus();
null!=f&&this.sidebar.showEntries(f);if(null!=u){for(var q=[],p=u.split(";"),t=0;t<p.length;t++)q.push(decodeURIComponent(p[t]));this.loadLibraries(q)}}),g=mxUtils.bind(this,function(){m||null==c||!c.isModified()?e():this.confirm(mxResources.get("allChangesLost"),null,e,mxResources.get("cancel"),mxResources.get("discardChanges"))});null!=d&&d();null==m||m?g():(b.constructor==LocalFile&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(b.getData(),b.getTitle(),
null==b.getMode())),null!=d&&d(),window.openWindow(E,null,g))});b.constructor==LocalFile?J():b.saveFile(b.getTitle(),!1,mxUtils.bind(this,function(){J()}),mxUtils.bind(this,function(c){R();null!=c&&"AbortError"==c.name||this.handleError(c)}))}}; | 0 | 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 | vulnerable |
this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var z=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(D){z.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=D?"":"none")};var C=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(D,M){C.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var m= | 0 | 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 | vulnerable |
document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,e){c=new TextareaDialog(this,c,e,null,null,mxResources.get("close"));this.showDialog(c.container,620,460,!0,!0,null,null,null,null,!0);c.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(c,e,g,q,p,t){"text/xml"!=g||/(\.drawio)$/i.test(e)||/(\.xml)$/i.test(e)||/(\.svg)$/i.test(e)||/(\.html)$/i.test(e)||(e=e+"."+(null!=t?t:"drawio")); | 0 | 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 | vulnerable |
W.fillStyle=T;return W};k.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};k.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};k.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var U=2;U<arguments.length;U+=2)this.lastX=arguments[U-1],this.lastY=arguments[U],this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))}; | 0 | 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 | vulnerable |
T[X[Z]]&&Y++;Y=Y==U}Y&&(1!=P||this.isCellVisible(y[W]))&&Q.push(y[W])}}return Q};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(k){for(var y=null,G=[],P=0;P<k.length;P++){var Q=this.getTagsForCell(k[P]);G=[];if(0<Q.length){Q=Q.split(" ");for(var U={},T=0;T<Q.length;T++)if(null==y||null!=y[Q[T]])U[Q[T]]=!0,G.push(Q[T]);y=U}else return[]}return G};Graph.prototype.getTagsForCells=function(k){for(var y= | 0 | 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 | vulnerable |
null,G),0<P.length&&(k=mxUtils.parseXml(P),k=k.documentElement))))}if(null!=k&&"svg"==k.nodeName)if(P=k.getAttribute("content"),null!=P&&"<"!=P.charAt(0)&&"%"!=P.charAt(0)&&(P=unescape(window.atob?atob(P):Base64.decode(cont,P))),null!=P&&"%"==P.charAt(0)&&(P=decodeURIComponent(P)),null!=P&&0<P.length)k=mxUtils.parseXml(P).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==k||y||(Q=null,"diagram"==k.nodeName?Q=k:"mxfile"==k.nodeName&&(P=k.getElementsByTagName("diagram"),0<
P.length&&(Q=P[Math.max(0,Math.min(P.length-1,urlParams.page||0))])),null!=Q&&(k=Editor.parseDiagramNode(Q,G)));null==k||"mxGraphModel"==k.nodeName||y&&"mxfile"==k.nodeName||(k=null);return k};Editor.parseDiagramNode=function(k,y){var G=mxUtils.trim(mxUtils.getTextContent(k)),P=null;0<G.length?(k=Graph.decompress(G,null,y),null!=k&&0<k.length&&(P=mxUtils.parseXml(k).documentElement)):(k=mxUtils.getChildNodes(k),0<k.length&&(P=mxUtils.createXmlDocument(),P.appendChild(P.importNode(k[0],!0)),P=P.documentElement)); | 0 | 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 | vulnerable |
null;x=mxUtils.button("",mxUtils.bind(this,function(B){this.pickColor(t||"none",function(I){t=I;g()});mxEvent.consume(B)}));g();x.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";x.style.marginLeft="4px";x.style.height="22px";x.style.width="22px";x.style.position="relative";x.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";x.className="geColorBtn";c.appendChild(x);mxUtils.br(c);return{getColor:function(){return t},getTarget:function(){return q.value},focus:function(){q.focus()}}}; | 0 | 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 | vulnerable |
(this.file.stats.cacheFail++,this.reload(f,m,d))}catch(t){null!=m&&m(t)}}else null!=m&&m()}),m)}else null!=m&&m()});window.setTimeout(N,this.cacheReadyDelay)}}else null!=m&&m()}};DrawioFileSync.prototype.reload=function(b,f,m,d){this.file.updateFile(mxUtils.bind(this,function(){this.lastModified=this.file.getLastModifiedDate();this.updateStatus();this.start();null!=b&&b()}),mxUtils.bind(this,function(u){null!=f&&f(u)}),m,d)}; | 0 | 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 | vulnerable |
340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};EditorUi.prototype.remoteInvokeCallbacks=[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(c){this.remoteWin=c;for(var e=0;e<this.remoteInvokeQueue.length;e++)c.postMessage(this.remoteInvokeQueue[e],
"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var e=c.msgMarkers,g=this.remoteInvokeCallbacks[e.callbackId];if(null==g)throw Error("No callback for "+(null!=e?e.callbackId:"null"));c.error?g.error&&g.error(c.error.errResp):g.callback&&g.callback.apply(this,c.resp);this.remoteInvokeCallbacks[e.callbackId]=null};EditorUi.prototype.remoteInvoke=function(c,e,g,q,p){var t=!0,x=window.setTimeout(mxUtils.bind(this,function(){t=!1;p({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}), | 0 | 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 | vulnerable |
na=la;ca=ma;ha=ja;ea=aa;za=oa;Ca=sa;Ba=fa;ea.style.backgroundColor=F;ea.style.border=L}function S(aa,la,ma,oa,fa,ja,sa,ta,La,Ga,ya){function Ja(Na,Ya){null==Fa?(Ka=Na,Ka=/^https?:\/\//.test(Ka)&&!b.editor.isCorsEnabledForUrl(Ka)?PROXY_URL+"?url="+encodeURIComponent(Ka):TEMPLATE_PATH+"/"+Ka,mxUtils.get(Ka,mxUtils.bind(this,function(Wa){200<=Wa.getStatus()&&299>=Wa.getStatus()&&(Fa=Wa.getText());Ya(Fa,Ka)}))):Ya(Fa,Ka)}function Ma(Na,Ya){if(null==aa||y||b.sidebar.currentElt==ra)b.sidebar.hideTooltip();
else if(b.sidebar.hideTooltip(),null!=G){var Wa="<mxfile><diagram>"+Graph.compress('<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" value="" style="shape=image;image='+G.src+';imageAspect=1;" parent="1" vertex="1"><mxGeometry width="'+G.naturalWidth+'" height="'+G.naturalHeight+'" as="geometry" /></mxCell></root></mxGraphModel>')+"</diagram></mxfile>";x(Wa,mxEvent.getClientX(Na),mxEvent.getClientY(Na),ma,aa)}else b.sidebar.currentElt=ra,y=!0,Ja(aa,function(ab){y&&b.sidebar.currentElt==
ra&&x(ab,mxEvent.getClientX(Na),mxEvent.getClientY(Na),ra,Ya);y=!1})}var ra=document.createElement("div");ra.className="geTemplate geAdaptiveAsset";ra.style.position="relative";ra.style.height=Qa+"px";ra.style.width=pa+"px";ra.style.border="1px solid transparent";var Fa=null,Ka=aa;null!=ma?ra.setAttribute("title",mxResources.get(ma,null,ma)):null!=oa&&0<oa.length&&ra.setAttribute("title",oa);if(null!=ja){ra.style.display="inline-flex";ra.style.justifyContent="center";ra.style.alignItems="center"; | 0 | 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 | vulnerable |
"hidden";na.style.bottom="0px";na.style.height="42px";na.style.right="10px";na.style.left="10px";T.isEnabled()&&(na.appendChild(Z),na.appendChild(ca),X.appendChild(na));return{div:X,refresh:ha}};Graph.prototype.getCustomFonts=function(){var k=this.extFonts;k=null!=k?k.slice():[];for(var y in Graph.customFontElements){var G=Graph.customFontElements[y];k.push({name:G.name,url:G.url})}return k};Graph.prototype.setFont=function(k,y){Graph.addFont(k,y);document.execCommand("fontname",!1,k);if(null!=y){var G=
this.cellEditor.textarea.getElementsByTagName("font");y=Graph.getFontUrl(k,y);for(var P=0;P<G.length;P++)G[P].getAttribute("face")==k&&G[P].getAttribute("data-font-src")!=y&&G[P].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!= | 0 | 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 | vulnerable |
x,null,null,null,t)):mxscript("js/extensions.min.js",x,null,null,null,t))};EditorUi.prototype.generatePlantUmlImage=function(c,e,g,q){function p(B,I,A){c1=B>>2;c2=(B&3)<<4|I>>4;c3=(I&15)<<2|A>>6;c4=A&63;r="";r+=t(c1&63);r+=t(c2&63);r+=t(c3&63);return r+=t(c4&63)}function t(B){if(10>B)return String.fromCharCode(48+B);B-=10;if(26>B)return String.fromCharCode(65+B);B-=26;if(26>B)return String.fromCharCode(97+B);B-=26;return 0==B?"-":1==B?"_":"?"}var x=new XMLHttpRequest;x.open("GET",("txt"==e?PLANT_URL+
"/txt/":"png"==e?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(B){r="";for(i=0;i<B.length;i+=3)r=i+2==B.length?r+p(B.charCodeAt(i),B.charCodeAt(i+1),0):i+1==B.length?r+p(B.charCodeAt(i),0,0):r+p(B.charCodeAt(i),B.charCodeAt(i+1),B.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(c))),!0);"txt"!=e&&(x.responseType="blob");x.onload=function(B){if(200<=this.status&&300>this.status)if("txt"==e)g(this.response);else{var I=new FileReader;I.readAsDataURL(this.response);I.onloadend=function(A){var S=
new Image;S.onload=function(){try{var l=S.width,n=S.height;if(0==l&&0==n){var z=I.result,C=z.indexOf(","),D=decodeURIComponent(escape(atob(z.substring(C+1)))),M=mxUtils.parseXml(D).getElementsByTagName("svg");0<M.length&&(l=parseFloat(M[0].getAttribute("width")),n=parseFloat(M[0].getAttribute("height")))}g(I.result,l,n)}catch(K){q(K)}};S.src=I.result};I.onerror=function(A){q(A)}}else q(B)};x.onerror=function(B){q(B)};x.send()};EditorUi.prototype.insertAsPreText=function(c,e,g){var q=this.editor.graph, | 0 | 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 | vulnerable |
!0;Editor.enableRealtime=!0;Editor.compressXml=!0;Editor.defaultCompressed=!1;Editor.oneDriveInlinePicker=null!=window.urlParams&&"0"==window.urlParams.inlinePicker?!1:!0;Editor.globalVars=null;Editor.config=null;Editor.configVersion=null;Editor.defaultBorder=5;Editor.commonProperties=[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(k){k.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,
"enumerate","0")}},{name:"comic",dispName:"Comic",type:"bool",defVal:!1,isVisible:function(k,y){return"1"!=mxUtils.getValue(k.style,"sketch","0")}},{name:"jiggle",dispName:"Jiggle",type:"float",min:0,defVal:1,isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,"comic","0")||"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"fillWeight",dispName:"Fill Weight",type:"int",defVal:-1,isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough? | 0 | 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 | vulnerable |
if(null!=y&&0<y.length){var U=document.createElement("script");U.setAttribute("type","text/javascript");U.setAttribute("src",k);y[0].parentNode.appendChild(U)}}};Editor.prototype.csvToArray=function(k){if(0<k.length){var y="",G=[""],P=0,Q=!0,U;k=$jscomp.makeIterator(k);for(U=k.next();!U.done;U=k.next())U=U.value,'"'===U?(Q&&U===y&&(G[P]+=U),Q=!Q):","===U&&Q?U=G[++P]="":G[P]+=U,y=U;return G}return[]};Editor.prototype.getProxiedUrl=function(k){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&& | 0 | 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 | vulnerable |
t.setAttribute("disabled","disabled")}));mxUtils.br(c);return{getLink:function(){return g.checked?"blank"===t.value?"_blank":p:null},getEditInput:function(){return g},getEditSelect:function(){return t}}};EditorUi.prototype.addLinkSection=function(c,e){function g(){var B=document.createElement("div");B.style.width="100%";B.style.height="100%";B.style.boxSizing="border-box";null!=t&&t!=mxConstants.NONE?(B.style.border="1px solid black",B.style.backgroundColor=t):(B.style.backgroundPosition="center center", | 0 | 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 | vulnerable |
EditorUi.prototype.createUrlParameters=function(c,e,g,q,p,t,x){x=null!=x?x:[];q&&("https://viewer.diagrams.net"==EditorUi.lightboxHost&&"1"!=urlParams.dev||x.push("lightbox=1"),"auto"!=c&&x.push("target="+c),null!=e&&e!=mxConstants.NONE&&x.push("highlight="+("#"==e.charAt(0)?e.substring(1):e)),null!=p&&0<p.length&&x.push("edit="+encodeURIComponent(p)),t&&x.push("layers=1"),this.editor.graph.foldingEnabled&&x.push("nav=1"));g&&null!=this.currentPage&&null!=this.pages&&this.currentPage!=this.pages[0]&&
x.push("page-id="+this.currentPage.getId());return x};EditorUi.prototype.createLink=function(c,e,g,q,p,t,x,B,I,A){I=this.createUrlParameters(c,e,g,q,p,t,I);c=this.getCurrentFile();e=!0;null!=x?g="#U"+encodeURIComponent(x):(c=this.getCurrentFile(),B||null==c||c.constructor!=window.DriveFile?g="#R"+encodeURIComponent(g?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(g="#"+c.getHash(),e=!1));e&&null!=c&&null!=c.getTitle()&&c.getTitle()!= | 0 | 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 | vulnerable |
function(t){return mxEvent.getSource(t)==g?!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,g){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)|| | 0 | 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 | vulnerable |
mxUtils.bind(this,function(){g(Error(mxResources.get("timeout")+" "+p.getAttribute("href")))}))}};EditorUi.prototype.setPagesVisible=function(c){Editor.pagesVisible!=c&&(Editor.pagesVisible=c,mxSettings.settings.pagesVisible=c,mxSettings.save(),this.fireEvent(new mxEventObject("pagesVisibleChanged")))};EditorUi.prototype.setSidebarTitles=function(c,e){this.sidebar.sidebarTitles!=c&&(this.sidebar.sidebarTitles=c,this.sidebar.refresh(),Editor.isSettingsEnabled()&&e&&(mxSettings.settings.sidebarTitles=
c,mxSettings.save()),this.fireEvent(new mxEventObject("sidebarTitlesChanged")))};EditorUi.prototype.saveScrollState=function(){var c=this.editor.graph.view.translate,e=mxUtils.getOffset(this.diagramContainer),g=this.diagramContainer.scrollLeft-e.x;e=this.diagramContainer.scrollTop-e.y;null!=this.embedViewport&&(Editor.inlineFullscreen?(g-=this.embedViewport.x,e-=this.embedViewport.y):(g+=this.embedViewport.x,e+=this.embedViewport.y));return{x:g,y:e,tx:c.x,ty:c.y}};EditorUi.prototype.restoreScrollState= | 0 | 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 | vulnerable |
ma.join(" ")}null!=ia?(P=ia,P.className+=" "+aa,Q=la,ka.className="geTempDlgCreateBtn"):(Q=P=null,ka.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function B(ia,aa){if(null!=Q){var la=function(sa){ja.isExternal?L(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(){g(mxResources.get("cannotLoad")); | 0 | 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 | vulnerable |
urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){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",x,null,null,null,t)},null,null,null,t)},null,null,null,t)},null,null,null,t)},null,null,null,t):mxscript("js/extensions.min.js",x,null,null,null,t))}),q)};EditorUi.prototype.createMermaidXml=function(c,e,g,q,p){var t=new Graph(document.createElement("div"));
g=t.insertVertex(null,null,null,0,0,q,p,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+g+";");t.setAttributeForCell(g,"mermaidData",JSON.stringify({data:c,config:e},null,2));c=(new mxCodec).encode(t.getModel());return mxUtils.getXml(c)};EditorUi.prototype.generateOpenAiMermaidDiagram=function(c,e,g){var q=0,p=mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"))&&this.createTimeout(4E4,mxUtils.bind(this,function(t){EditorUi.logEvent({category:"OPENAI-DIAGRAM", | 0 | 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 | vulnerable |
H.setAttribute("type","range");H.setAttribute("min","2");H.setAttribute("max","30");H.setAttribute("value",E.freehand.getBrushSize());H.style.width="90%";H.style.visibility="hidden";F.appendChild(H);mxUtils.br(F);N=function(){E.freehand.setPerfectFreehandMode(L.checked);H.style.visibility=L.checked?"visible":"hidden"};mxEvent.addListener(L,"change",N);N();mxEvent.addListener(H,"change",function(){E.freehand.setBrushSize(parseInt(this.value))})}var R=mxUtils.button(mxResources.get("startDrawing"), | 0 | 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 | vulnerable |
mxUtils.setTextContent(g,JSON.stringify(c,null,2));e.appendChild(g);return mxUtils.getXml(e,"\n")};EditorUi.prototype.closeLibrary=function(c){null!=c&&(this.removeLibrarySidebar(c.getHash()),c.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(c.getHash()),".scratchpad"==c.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(c){var e=this.sidebar.palettes[c];if(null!=e){for(var g=0;g<e.length;g++)e[g].parentNode.removeChild(e[g]);delete this.sidebar.palettes[c]}}; | 0 | 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 | vulnerable |
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 G=mxUtils.parseXml(y).documentElement;return"mxfile"==G.nodeName||"mxGraphModel"==G.nodeName}}catch(P){}return!1};Editor.prototype.extractGraphModel=function(k,y,G){return Editor.extractGraphModel.apply(this,arguments)};var m=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled= | 0 | 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 | vulnerable |
Na=k.getCurrentFile();null!=Na&&(Ja.title=Na.getTitle());var hb=Ja.writeHead;Ja.writeHead=function(Za){hb.apply(this,arguments);mxClient.IS_GC&&(Za.writeln('<style type="text/css">'),Za.writeln("@media print {"),Za.writeln(".MathJax svg { shape-rendering: crispEdges; }"),Za.writeln("}"),Za.writeln("</style>"));null!=k.editor.fontCss&&(Za.writeln('<style type="text/css">'),Za.writeln(k.editor.fontCss),Za.writeln("</style>"));for(var cb=ya.getCustomFonts(),bb=0;bb<cb.length;bb++){var eb=cb[bb].name,
db=cb[bb].url;Graph.isCssFontUrl(db)?Za.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(db)+'" charset="UTF-8" type="text/css">'):(Za.writeln('<style type="text/css">'),Za.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(eb)+'";\nsrc: url("'+mxUtils.htmlEntities(db)+'");\n}'),Za.writeln("</style>"))}};if("undefined"!==typeof MathJax){var ib=Ja.renderPage;Ja.renderPage=function(Za,cb,bb,eb,db,kb){var jb=mxClient.NO_FO,fb=ib.apply(this,arguments);mxClient.NO_FO=jb;this.graph.mathEnabled? | 0 | 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 | vulnerable |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.