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
Graph.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(l){return l.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(l){return Graph.isGoogleFontUrl(l)};Graph.createFontElement=function(l,B){var N=Graph.fontMapping[B];null==N&&Graph.isCssFontUrl(B)?(l=document.createElement("link"),l.setAttribute("rel","stylesheet"),l.setAttribute("type","text/css"),l.setAttribute("charset","UTF-8"),l.setAttribute("href",B)):(null==N&&(N='@font-face {\nfont-family: "'+
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
c?c=u:c.add(u))}this.bounds=null!=c?c:new mxRectangle};b.prototype.paintVertexShape=function(c,m,u,n,t){this.paintTableLine(c,this.line,0,0)};b.prototype.paintTableLine=function(c,m,u,n){if(null!=m){var t=null;c.begin();for(var C=0;C<m.length;C++){var D=m[C];null!=D&&(null==t?c.moveTo(D.x+u,D.y+n):null!=t&&c.lineTo(D.x+u,D.y+n));t=D}c.end();c.stroke()}};b.prototype.intersectsRectangle=function(c){var m=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var u=null,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.graph.getSelectionCells()),this.graph.graphHandler.cellWasClicked=!0,this.graph.isMouseTrigger=mxEvent.isMouseEvent(oa),this.graph.isMouseDown=!0);mxEvent.consume(oa)}),null,mxUtils.bind(this,function(oa){mxEvent.isPopupTrigger(oa)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(oa),mxEvent.getClientY(oa),ea.cell,oa),mxEvent.consume(oa))}));Q.push(la)}else Q.push(null)})(this.graph.view.getState(L.getChildAt(this.state.cell,X)));return Q};mxVertexHandler.prototype.destroyMoveHandles=function(){if(null!= this.moveHandles){for(var x=0;x<this.moveHandles.length;x++)null!=this.moveHandles[x]&&this.moveHandles[x].destroy();this.moveHandles=null}};var N=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){N.apply(this,arguments);this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles()};var Z=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var x=new mxPoint(0,0),L=this.tolerance,Q=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
[];for(var y=0;256>y;y++)for(var q=y,E=0;8>E;E++)q=1==(q&1)?3988292384^q>>>1:q>>>1,Editor.crcTable[y]=q;Editor.updateCRC=function(l,B,N,Z){for(var U=0;U<Z;U++)l=Editor.crcTable[(l^B.charCodeAt(N+U))&255]^l>>>8;return l};Editor.crc32=function(l){for(var B=-1,N=0;N<l.length;N++)B=B>>>8^Editor.crcTable[(B^l.charCodeAt(N))&255];return(B^-1)>>>0};Editor.writeGraphModelToPng=function(l,B,N,Z,U){function aa(pa,wa){var Ca=qa;qa+=wa;return pa.substring(Ca,qa)}function Y(pa){pa=aa(pa,4);return pa.charCodeAt(3)+ (pa.charCodeAt(2)<<8)+(pa.charCodeAt(1)<<16)+(pa.charCodeAt(0)<<24)}function ka(pa){return String.fromCharCode(pa>>24&255,pa>>16&255,pa>>8&255,pa&255)}l=l.substring(l.indexOf(",")+1);l=window.atob?atob(l):Base64.decode(l,!0);var qa=0;if(aa(l,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=U&&U();else if(aa(l,4),"IHDR"!=aa(l,4))null!=U&&U();else{aa(l,17);U=l.substring(0,qa);do{var ra=Y(l);if("IDAT"==aa(l,4)){U=l.substring(0,qa-8);"pHYs"==B&&"dpi"==N?(N=Math.round(Z/.0254), N=ka(N)+ka(N)+String.fromCharCode(1)):N=N+String.fromCharCode(0)+("zTXt"==B?String.fromCharCode(0):"")+Z;Z=4294967295;Z=Editor.updateCRC(Z,B,0,4);Z=Editor.updateCRC(Z,N,0,N.length);U+=ka(N.length)+B+N+ka(Z^4294967295);U+=l.substring(qa-8,l.length);break}U+=l.substring(qa-8,qa-4+ra);aa(l,ra);aa(l,4)}while(ra);return"data:image/png;base64,"+(window.btoa?btoa(U):Base64.encode(U,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var M=ColorDialog.addRecentColor;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
!this.isAllTagsHidden(this.getTagsForCell(l))};Graph.prototype.setHiddenTags=function(l){this.hiddenTags=l;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(l){var B=mxUtils.indexOf(this.hiddenTags,l);0>B?this.hiddenTags.push(l):0<=B&&this.hiddenTags.splice(B,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(l){if(null==l||0==l.length||0==this.hiddenTags.length)return!1;l=l.split(" ");if(l.length>this.hiddenTags.length)return!1;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
0);m+=C;u+=C;n-=2*C;t-=2*C;0<n&&0<t&&(c.setShadow(!1),ib.apply(this,[c,m,u,n,t]))}};mxUtils.extend(P,mxRectangleShape);P.prototype.isHtmlAllowed=function(){return!1};P.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var m=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(c.x+m,c.y+m,c.width-2*m,c.height-2*m)}return c};P.prototype.paintForeground=function(c,m,u,n,t){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var C= Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);m+=C;u+=C;n-=2*C;t-=2*C;0<n&&0<t&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}c.setDashed(!1);C=0;do{var D=mxCellRenderer.defaultShapes[this.style["symbol"+C]];if(null!=D){var ha=this.style["symbol"+C+"Align"],I=this.style["symbol"+C+"VerticalAlign"],ua=this.style["symbol"+C+"Width"],na=this.style["symbol"+C+"Height"],Za=this.style["symbol"+C+"Spacing"]||0,qb=this.style["symbol"+C+"VSpacing"]|| Za,fb=this.style["symbol"+C+"ArcSpacing"];null!=fb&&(fb*=this.getArcSize(n+this.strokewidth,t+this.strokewidth),Za+=fb,qb+=fb);fb=m;var Ga=u;fb=ha==mxConstants.ALIGN_CENTER?fb+(n-ua)/2:ha==mxConstants.ALIGN_RIGHT?fb+(n-ua-Za):fb+Za;Ga=I==mxConstants.ALIGN_MIDDLE?Ga+(t-na)/2:I==mxConstants.ALIGN_BOTTOM?Ga+(t-na-qb):Ga+qb;c.save();ha=new D;ha.style=this.style;D.prototype.paintVertexShape.call(ha,c,fb,Ga,ua,na);c.restore()}C++}while(null!=D)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.outerStroke&&(c.ellipse(m,u,n,t),c.stroke())};mxCellRenderer.registerShape("endState",ya);mxUtils.extend(Oa,ya);Oa.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",Oa);mxUtils.extend(Qa,mxArrowConnector);Qa.prototype.defaultWidth=4;Qa.prototype.isOpenEnded=function(){return!0};Qa.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};Qa.prototype.isArrowRounded=function(){return this.isRounded};mxCellRenderer.registerShape("link",
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(){return p.apply(this,arguments)||null!=e.shapePicker||null!=e.currentMenu};var y=b.dblClick;b.dblClick=function(T,F){if(this.isEnabled())if(null!=F||null==e.sidebar||mxEvent.isShiftDown(T)||b.isCellLocked(b.getDefaultParent()))y.apply(this,arguments);else{var K=mxUtils.convertPoint(this.container,mxEvent.getClientX(T),mxEvent.getClientY(T));mxEvent.consume(T);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(K.x,K.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
ma.width=ja;ma.height=fa;var ba=ma.toDataURL();ia!==ba&&(f=ia,J=ja,O=fa)}}}catch(S){}k(f,J,O)};EditorUi.prototype.extractGraphModelFromPng=function(d){return Editor.extractGraphModelFromPng(d)};EditorUi.prototype.loadImage=function(d,f,k){try{var v=new Image;v.onload=function(){v.width=0<v.width?v.width:120;v.height=0<v.height?v.height:120;f(v)};null!=k&&(v.onerror=k);v.src=d}catch(z){if(null!=k)k(z);else throw z;}};EditorUi.prototype.getDefaultSketchMode=function(){var d="1"==urlParams.sketch;return"0"!= (null!=urlParams.rough?urlParams.rough:d)};var y=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode()),null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());y.apply(this,arguments)};var q=EditorUi.prototype.init;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
E+"px",this.view.backgroundPageShape.node.style.marginTop=M+"px")};var y=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(E,M,T,F,K,R){var W=y.apply(this,arguments);null==R||R||mxEvent.addListener(W,"mousedown",function(d){mxEvent.consume(d)});return W};var q=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=function(E,M,T){var F=this.graph.model.getParent(E);if(M){var K=this.graph.model.isEdge(E)?null:this.graph.getCellGeometry(E);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Da(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function Q(){mxEllipse.call(this)}
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
(0<J.length&&(J+="\n"),J+=H);H=new LocalFile(this,"csv"!=d.format&&0<J.length?J:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);H.getHash=function(){return v};this.fileLoaded(H);"csv"==d.format&&this.importCsv(J,mxUtils.bind(this,function(ca){this.editor.undoManager.clear();this.editor.setModified(!1);this.editor.setStatus("")}));if(null!=d.update){var O=null!=d.interval?parseInt(d.interval):6E4,G=null,ja=mxUtils.bind(this,function(){var ca=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
0),new mxPoint(n-m,0),new mxPoint(n,.5*t),new mxPoint(n-m,t),new mxPoint(m,t),new mxPoint(0,.5*t)],this.isRounded,u,!0)};mxCellRenderer.registerShape("hexagon",S);mxUtils.extend(da,mxRectangleShape);da.prototype.isHtmlAllowed=function(){return!1};da.prototype.paintForeground=function(c,m,u,n,t){var C=Math.min(n/5,t/5)+1;c.begin();c.moveTo(m+n/2,u+C);c.lineTo(m+n/2,u+t-C);c.moveTo(m+C,u+t/2);c.lineTo(m+n-C,u+t/2);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"keydown",mxUtils.bind(this,function(p){this.onKeyDown(p)}));mxEvent.addListener(b.container,"keypress",mxUtils.bind(this,function(p){this.onKeyPress(p)}));this.addUndoListener();this.addBeforeUnloadListener();b.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));b.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));var e=b.setDefaultParent,g=this;this.editor.graph.setDefaultParent=function(){e.apply(this, arguments);g.updateActionStates()};b.editLink=g.actions.get("editLink").funct;this.updateActionStates();this.initClipboard();this.initCanvas();null!=this.format&&this.format.init()}};EditorUi.prototype.clearSelectionState=function(){this.selectionState=null};EditorUi.prototype.getSelectionState=function(){null==this.selectionState&&(this.selectionState=this.createSelectionState());return this.selectionState};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
0,0,0,n,0)),c.lineTo(n,t-C),c.arcTo(.5*n,C,0,0,1,.5*n,t),c.arcTo(.5*n,C,0,0,1,0,t-C),c.close(),c.fillAndStroke(),c.setShadow(!1),D&&(c.begin(),c.moveTo(n,C),c.arcTo(.5*n,C,0,0,1,.5*n,2*C),c.arcTo(.5*n,C,0,0,1,0,C),c.stroke()))};mxCellRenderer.registerShape("cylinder3",d);mxUtils.extend(f,mxActor);f.prototype.redrawPath=function(c,m,u,n,t){c.moveTo(0,0);c.quadTo(n/2,.5*t,n,0);c.quadTo(.5*n,t/2,n,t);c.quadTo(n/2,.5*t,0,t);c.quadTo(.5*n,t/2,0,0);c.end()};mxCellRenderer.registerShape("switch",f);mxUtils.extend(k,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.createStatusContainer=function(){var b=document.createElement("a");b.className="geItem geStatus";mxEvent.addListener(b,"click",mxUtils.bind(this,function(e){var g=mxEvent.getSource(e);if("A"!=g.nodeName){var p=g.getAttribute("data-action");if("statusFunction"==p&&null!=this.editor.statusFunction)this.editor.statusFunction();else if(null!=p)g=this.actions.get(p),null!=g&&g.funct();else{p=g.getAttribute("data-title");var y=g.getAttribute("data-message");null!=p&&null!=y?this.showError(p, y):(g=g.getAttribute("data-link"),null!=g&&this.editor.graph.openLink(g))}mxEvent.consume(e)}}));return b};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(S){try{f(S.target.result)}catch(da){J({message:mxResources.get("errorLoadingFile")})}});ba.readAsText(ma)}else this.doImportVisio(ma,f,J,v)}catch(S){J(S)}else try{""==ia.responseType||"text"==ia.responseType?J({message:ia.responseText}):(ba=new FileReader,ba.onload=function(){try{J({message:JSON.parse(ba.result).Message})}catch(S){J(S)}},ba.readAsText(ia.response))}catch(S){J({})}});ia.send(G)}else if(H.clear())try{this.doImportVisio(d,f,J,v)}catch(ma){J(ma)}}else J({message:mxResources.get("serviceUnavailableOrBlocked")})});
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxUtils.bind(this,function(fa){q(100)}));mxEvent.addListener(e,"mousemove",mxUtils.bind(this,function(fa){q(100);mxEvent.consume(fa)}));mxEvent.addListener(e,"mouseleave",mxUtils.bind(this,function(fa){mxEvent.isTouchEvent(fa)||q(30)}));var E=this.graph,M=E.getTolerance();E.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(fa,ca){this.startX=ca.getGraphX();this.startY=ca.getGraphY();this.scrollLeft=E.container.scrollLeft;this.scrollTop=E.container.scrollTop},mouseMove:function(fa, ca){},mouseUp:function(fa,ca){mxEvent.isTouchEvent(ca.getEvent())&&Math.abs(this.scrollLeft-E.container.scrollLeft)<M&&Math.abs(this.scrollTop-E.container.scrollTop)<M&&Math.abs(this.startX-ca.getGraphX())<M&&Math.abs(this.startY-ca.getGraphY())<M&&(0<parseFloat(e.style.opacity||0)?y():q(30))}})}for(var T=this.toolbarItems,F=0,K=mxUtils.bind(this,function(fa,ca,ia,ma){fa=this.createToolbarButton(fa,ca,ia,ma);e.appendChild(fa);F++;return fa}),R=null,W=null,d=null,f=null,k=0;k<T.length;k++){var v=T[k];
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
l&&l()};Editor.prototype.createGoogleFontCache=function(){var l={},B;for(B in Graph.fontMapping)Graph.isCssFontUrl(B)&&(l[B]=Graph.fontMapping[B]);return l};Editor.prototype.embedExtFonts=function(l){var B=this.graph.getCustomFonts();if(0<B.length){var N=[],Z=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var U=mxUtils.bind(this,function(){0==Z&&this.embedCssFonts(N.join(""),l)}),aa=0;aa<B.length;aa++)mxUtils.bind(this,function(Y,ka){Graph.isCssFontUrl(ka)? null==this.cachedGoogleFonts[ka]?(Z++,this.loadUrl(ka,mxUtils.bind(this,function(qa){this.cachedGoogleFonts[ka]=qa;N.push(qa+"\n");Z--;U()}),mxUtils.bind(this,function(qa){Z--;N.push("@import url("+ka+");\n");U()}))):N.push(this.cachedGoogleFonts[ka]+"\n"):N.push('@font-face {font-family: "'+Y+'";src: url("'+ka+'")}\n')})(B[aa].name,B[aa].url);U()}else l()};Editor.prototype.addMathCss=function(l){l=l.getElementsByTagName("defs");if(null!=l&&0<l.length)for(var B=document.getElementsByTagName("style"),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.moveHandles[x]&&this.moveHandles[x].parentNode.removeChild(this.moveHandles[x]);this.moveHandles=null}};mxVertexHandler.prototype.createMoveHandles=function(){for(var x=this.graph,L=x.model,Q=[],X=0;X<L.getChildCount(this.state.cell);X++)mxUtils.bind(this,function(ea){if(null!=ea&&L.isVertex(ea.cell)&&x.isCellMovable(ea.cell)){var la=new mxRectangle(0,0,this.rowHandleImage.width,this.rowHandleImage.height);la=new mxImageShape(la,this.rowHandleImage.src);la.rowState=ea;la.dialect=this.graph.dialect!= mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;la.init(this.graph.getView().getOverlayPane());la.node.style.cursor="move";mxEvent.addGestureListeners(la.node,mxUtils.bind(this,function(oa){this.graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);!this.graph.isToggleEvent(oa)&&this.graph.isCellSelected(ea.cell)||this.graph.selectCellForEvent(ea.cell,oa);mxEvent.isPopupTrigger(oa)||(this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(oa),mxEvent.getClientY(oa), this.graph.getSelectionCells()),this.graph.graphHandler.cellWasClicked=!0,this.graph.isMouseTrigger=mxEvent.isMouseEvent(oa),this.graph.isMouseDown=!0);mxEvent.consume(oa)}),null,mxUtils.bind(this,function(oa){mxEvent.isPopupTrigger(oa)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(oa),mxEvent.getClientY(oa),ea.cell,oa),mxEvent.consume(oa))}));Q.push(la)}else Q.push(null)})(this.graph.view.getState(L.getChildAt(this.state.cell,X)));return Q};mxVertexHandler.prototype.destroyMoveHandles=function(){if(null!=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(aa){var Y=aa.addTolerance,ka=!0;null!=this.style&&(ka="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=aa.handJiggle&&aa.handJiggle.constructor==l&&!this.outline){aa.save();var qa=this.fill,ra=this.stroke;this.stroke=this.fill=null;var pa=this.configurePointerEvents,wa=aa.setStrokeColor;aa.setStrokeColor=function(){};var Ca=aa.setFillColor;aa.setFillColor=function(){};ka||null==qa||(this.configurePointerEvents=function(){});aa.handJiggle.passThrough=!0;Z.apply(this,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(c,m,u){c=[];var n=Math.min(m,u/2),t=Math.min(m-n,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*m);c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+m-n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,m-n,0));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));c.push(new mxConnectionConstraint(new mxPoint(0, 0),!1,null,m-n,u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+m-n),u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,u));return c};wa.prototype.getConstraints=function(c,m,u){m=parseFloat(mxUtils.getValue(c,"jettyWidth",wa.prototype.jettyWidth))/2;c=parseFloat(mxUtils.getValue(c,"jettyHeight",wa.prototype.jettyHeight));var n=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,m),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function Z(){mxShape.call(this)}function U(){mxShape.call(this)}function aa(){mxRectangleShape.call(this)}function Y(){mxShape.call(this)}function ka(){mxShape.call(this)}function qa(){mxShape.call(this)}function ra(){mxShape.call(this)}function pa(){mxShape.call(this)}function wa(){mxCylinder.call(this)}function Ca(){mxCylinder.call(this)}function Ba(){mxRectangleShape.call(this)}function ya(){mxDoubleEllipse.call(this)}function Oa(){mxDoubleEllipse.call(this)}function Qa(){mxArrowConnector.call(this);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function Action(b,e,g,p,y){mxEventSource.call(this);this.label=b;this.funct=this.createFunction(e);this.enabled=null!=g?g:!0;this.iconCls=p;this.shortcut=y;this.visible=!0}mxUtils.extend(Action,mxEventSource);Action.prototype.createFunction=function(b){return b};Action.prototype.setEnabled=function(b){this.enabled!=b&&(this.enabled=b,this.fireEvent(new mxEventObject("stateChanged")))};Action.prototype.isEnabled=function(){return this.enabled};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function X(){mxEllipse.call(this)}function ea(){mxEllipse.call(this)}function la(){mxRhombus.call(this)}function oa(){mxEllipse.call(this)}function xa(){mxEllipse.call(this)}function sa(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Fa(){mxActor.call(this)}function Ua(){mxActor.call(this)}function ab(){mxActor.call(this)}function Na(c,m,u,n){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=u;this.strokewidth=null!=n?n:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.installResizeHandler=function(b,e,g){e&&(b.window.setSize=function(y,q){if(!this.minimized){var E=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;y=Math.min(y,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());q=Math.min(q,E-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});b.window.setLocation=function(y,q){var E=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth, M=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,T=parseInt(this.div.style.width),F=parseInt(this.div.style.height);y=Math.max(0,Math.min(y,E-T));q=Math.max(0,Math.min(q,M-F));this.getX()==y&&this.getY()==q||mxWindow.prototype.setLocation.apply(this,arguments);e&&!this.minimized&&this.setSize(T,F)};var p=mxUtils.bind(this,function(){var y=b.window.getX(),q=b.window.getY();b.window.setLocation(y,q)});mxEvent.addListener(window,"resize",p);b.destroy=function(){mxEvent.removeListener(window,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
(function(){var b=new mxObjectCodec(new ChangePage,["ui","relatedPage","index","page","previousPage"]);b.afterEncode=function(e,g,p){p.setAttribute("relatedPage",g.relatedPage.getId());null==g.index&&(p.setAttribute("name",g.relatedPage.getName()),null!=g.relatedPage.viewState&&p.setAttribute("viewState",JSON.stringify(g.relatedPage.viewState,function(y,q){return 0>mxUtils.indexOf(EditorUi.transientViewStateProperties,y)?q:void 0})),null!=g.relatedPage.root&&e.encodeCell(g.relatedPage.root,p));return p};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.linkHint.style.left=Math.max(0,Math.round(x.x+(x.width-this.linkHint.clientWidth)/2))+"px";this.linkHint.style.top=Math.round(x.y+x.height+Editor.hintOffset)+"px"}};var Da=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=function(){Da.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var Ma=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Ma.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"absolute";Ba.style.overflow="hidden";Ba.style.bottom="0px";Ba.style.height="42px";Ba.style.right="10px";Ba.style.left="10px";Y.isEnabled()&&(Ba.appendChild(pa),Ba.appendChild(wa),qa.appendChild(Ba));return{div:qa,refresh:Ca}};Graph.prototype.getCustomFonts=function(){var l=this.extFonts;l=null!=l?l.slice():[];for(var B in Graph.customFontElements){var N=Graph.customFontElements[B];l.push({name:N.name,url:N.url})}return l};Graph.prototype.setFont=function(l,B){Graph.addFont(l,B);document.execCommand("fontname", !1,l);if(null!=B){var N=this.cellEditor.textarea.getElementsByTagName("font");B=Graph.getFontUrl(l,B);for(var Z=0;Z<N.length;Z++)N[Z].getAttribute("face")==l&&N[Z].getAttribute("data-font-src")!=B&&N[Z].setAttribute("data-font-src",B)}};var A=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return A.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
la||ea))};Graph.prototype.createGroupCell=function(){var x=mxGraph.prototype.createGroupCell.apply(this,arguments);x.setStyle("group");return x};Graph.prototype.isExtendParentsOnAdd=function(x){var L=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(L&&null!=x&&null!=this.layoutManager){var Q=this.model.getParent(x);null!=Q&&(Q=this.layoutManager.getLayout(Q),null!=Q&&Q.constructor==mxStackLayout&&(L=!1))}return L};Graph.prototype.getPreferredSizeForCell=function(x){var L=mxGraph.prototype.getPreferredSizeForCell.apply(this, arguments);null!=L&&(L.width+=10,L.height+=4,this.gridEnabled&&(L.width=this.snap(L.width),L.height=this.snap(L.height)));return L};Graph.prototype.turnShapes=function(x,L){var Q=this.getModel(),X=[];Q.beginUpdate();try{for(var ea=0;ea<x.length;ea++){var la=x[ea];if(Q.isEdge(la)){var oa=Q.getTerminal(la,!0),xa=Q.getTerminal(la,!1);Q.setTerminal(la,xa,!0);Q.setTerminal(la,oa,!1);var sa=Q.getGeometry(la);if(null!=sa){sa=sa.clone();null!=sa.points&&sa.points.reverse();var va=sa.getTerminalPoint(!0),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.scale*B.height*N.height)};b.getPreferredPageSize=function(B,N,Z){B=this.getPageLayout();N=this.getPageSize();return new mxRectangle(0,0,B.width*N.width,B.height*N.height)};var e=null,g=this;if(this.editor.isChromelessView()){this.chromelessResize=e=mxUtils.bind(this,function(B,N,Z,U){if(null!=b.container&&!b.isViewer()){Z=null!=Z?Z:0;U=null!=U?U:0;var aa=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),Y=mxUtils.hasScrollbars(b.container),ka=b.view.translate,qa=b.view.scale,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
B);mxUtils.extend(N,mxEllipse);N.prototype.paintVertexShape=function(c,m,u,n,t){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.begin();c.moveTo(m+n/8,u+t);c.lineTo(m+7*n/8,u+t);c.end();c.stroke()};mxCellRenderer.registerShape("umlEntity",N);mxUtils.extend(Z,mxShape);Z.prototype.paintVertexShape=function(c,m,u,n,t){c.translate(m,u);c.begin();c.moveTo(n,0);c.lineTo(0,t);c.moveTo(0,0);c.lineTo(n,t);c.end();c.stroke()};mxCellRenderer.registerShape("umlDestroy",Z);mxUtils.extend(U,mxShape);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
V;P()},O)}else P()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(d,f){f=null!=f?f:!1;var k=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},v=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,z=function(A,H){if(A||f)mxSettings.setResizeImages(A?H:null),mxSettings.save(); k();d(H)};null==v||f?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(A){z(A,!0)},function(A){z(A,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?220:200,!0,!0):z(!1,v)};EditorUi.prototype.parseFile=function(d,f,k){k=null!=k?k:d.name;var v=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function R(ba,S,da){ba=f.getOutgoingTreeEdges(ba);da=f.view.getState(da);var P=[];if(null!=da&&null!=ba){for(var V=0;V<ba.length;V++){var l=f.view.getState(f.model.getTerminal(ba[V],!1));null!=l&&(!S&&Math.min(l.x+l.width,da.x+da.width)>=Math.max(l.x,da.x)||S&&Math.min(l.y+l.height,da.y+da.height)>=Math.max(l.y,da.y))&&P.push(l)}P.sort(function(B,N){return S?B.x+B.width-N.x-N.width:B.y+B.height-N.y-N.height})}return P}function W(ba,S){var da=M(ba),P=S==mxConstants.DIRECTION_EAST||S==mxConstants.DIRECTION_WEST; (da==mxConstants.DIRECTION_EAST||da==mxConstants.DIRECTION_WEST)==P&&da!=S?d.actions.get("selectParent").funct():da==S?(S=f.getOutgoingTreeEdges(ba),null!=S&&0<S.length&&f.setSelectionCell(f.model.getTerminal(S[0],!1))):(da=f.getIncomingTreeEdges(ba),null!=da&&0<da.length&&(P=R(f.model.getTerminal(da[0],!0),P,ba),ba=f.view.getState(ba),null!=ba&&(ba=mxUtils.indexOf(P,ba),0<=ba&&(ba+=S==mxConstants.DIRECTION_NORTH||S==mxConstants.DIRECTION_WEST?-1:1,0<=ba&&ba<=P.length-1&&f.setSelectionCell(P[ba].cell)))))}
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
0),!1,null,m,.5*(u+n)));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));m>=2*n&&c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return c};z.prototype.getConstraints=function(c,m,u){c=[];var n=Math.max(0,Math.min(m,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(1, 0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(m+n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(u+n)));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(1, 1),!1));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));m>=2*n&&c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return c};p.prototype.getConstraints=function(c,m,u){c=[];var n=Math.max(0,Math.min(m,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(m-n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,m-n,0));c.push(new mxConnectionConstraint(new mxPoint(0,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.menus.isShowCellEditItems=this.menus.isShowStyleItems}d.actions.get("print").funct=function(){d.showDialog((new PrintDialog(d)).container,360,null!=d.pages&&1<d.pages.length?470:390,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var ja=f.getExportVariables;f.getExportVariables=function(){var P=ja.apply(this,arguments),V=d.getCurrentFile();null!=V&&(P.filename=V.getTitle());P.pagecount=null!=d.pages?d.pages.length:1;P.page=null!=d.currentPage?d.currentPage.getName():"";P.pagenumber=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.showShapePicker=function(b,e,g,p,y,q,E,M,T){M=M||null==g;b=this.createShapePicker(b,e,g,p,y,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(g,q,M),q,E,M,T);null!=b&&(null==this.hoverIcons||q||this.hoverIcons.reset(),q=this.editor.graph,q.popupMenuHandler.hideMenu(),q.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=p,this.shapePicker=b);return b};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Editor.createRoughCanvas=function(l){var B=rough.canvas({getContext:function(){return l}});B.draw=function(N){var Z=N.sets||[];N=N.options||this.getDefaultOptions();for(var U=0;U<Z.length;U++){var aa=Z[U];switch(aa.type){case "path":null!=N.stroke&&this._drawToContext(l,aa,N);break;case "fillPath":this._drawToContext(l,aa,N);break;case "fillSketch":this.fillSketch(l,aa,N)}}};B.fillSketch=function(N,Z,U){var aa=l.state.strokeColor,Y=l.state.strokeWidth,ka=l.state.strokeAlpha,qa=l.state.dashed,ra=U.fillWeight;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
arguments);null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var q=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){q.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var E=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(W,d){null!=d.shortcut&&900>p&&!mxClient.IS_IOS?W.firstChild.nextSibling.setAttribute("title", d.shortcut):E.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(W){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=W?W:!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 M=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Da(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function Q(){mxEllipse.call(this)}
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.createCellLookup(x)),Q);return la.encode(oa)};Graph.prototype.isSwimlane=function(x,L){var Q=null;null==x||this.model.isEdge(x)||this.model.getParent(x)==this.model.getRoot()||(Q=this.getCurrentCellStyle(x,L)[mxConstants.STYLE_SHAPE]);return Q==mxConstants.SHAPE_SWIMLANE||"table"==Q||"tableRow"==Q};var M=Graph.prototype.isCellEditable;Graph.prototype.isCellEditable=function(x){return null!=x&&M.apply(this,arguments)?this.isTableCell(x)||this.isTableRow(x)?this.isCellEditable(this.model.getParent(x)):
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.prototype.updateCustomLinkActions=function(l,B){for(var N=0;N<B.length;N++){var Z=B[N],U;for(U in Z)this.updateCustomLinkAction(l,Z[U],"cells"),this.updateCustomLinkAction(l,Z[U],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(l,B,N){if(null!=B&&null!=B[N]){for(var Z=[],U=0;U<B[N].length;U++)if("*"==B[N][U])Z.push(B[N][U]);else{var aa=l[B[N][U]];null!=aa?""!=aa&&Z.push(aa):Z.push(B[N][U])}B[N]=Z}};Graph.prototype.getCellsForAction=function(l,B){B=this.getCellsById(l.cells).concat(this.getCellsForTags(l.tags,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxShape.prototype.createHandJiggle=function(aa){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?B.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(aa):this.createRoughCanvas(aa)};var N=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(aa,Y,ka,qa,ra){null!=aa.handJiggle&&aa.handJiggle.passThrough||N.apply(this,arguments)};var Z=mxShape.prototype.paint;mxShape.prototype.paint=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
U.prototype.getLabelBounds=function(c){return new mxRectangle(c.x,c.y+c.height/8,c.width,7*c.height/8)};U.prototype.paintBackground=function(c,m,u,n,t){c.translate(m,u);c.begin();c.moveTo(3*n/8,t/8*1.1);c.lineTo(5*n/8,0);c.end();c.stroke();c.ellipse(0,t/8,n,7*t/8);c.fillAndStroke()};U.prototype.paintForeground=function(c,m,u,n,t){c.begin();c.moveTo(3*n/8,t/8*1.1);c.lineTo(5*n/8,t/4);c.end();c.stroke()};mxCellRenderer.registerShape("umlControl",U);mxUtils.extend(aa,mxRectangleShape);aa.prototype.size=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
C)c.lineTo(n-I,t-ha-.5*I);else if("fold"==D||"default"==D&&"fold"==C)c.lineTo(n-ha-I,t-ha-I),c.lineTo(n-I,t-ha-I)};Na.prototype.paintBottomInner=function(c,m,u,n,t,C,D,ha,I,ua,na){ua||na?!ua&&na?c.lineTo(n,t-I):ua&&!na?c.lineTo(n-I,t):"square"==D||"default"==D&&"square"==C||!ua?c.lineTo(n-I,t-I):"rounded"==D||"default"==D&&"rounded"==C||"snip"==D||"default"==D&&"snip"==C?c.lineTo(n-ha-.5*I,t-I):c.lineTo(n-ha-I,t-I):c.lineTo(n,t)};Na.prototype.paintSWInner=function(c,m,u,n,t,C,D,ha,I,ua){if(!ua)c.lineTo(I, t);else if("square"==D||"default"==D&&"square"==C)c.lineTo(I,t-I);else if("rounded"==D||"default"==D&&"rounded"==C)c.arcTo(ha-.5*I,ha-.5*I,0,0,0,ha+.5*I,t-I);else if("invRound"==D||"default"==D&&"invRound"==C)c.arcTo(ha+I,ha+I,0,0,1,ha+I,t-I);else if("snip"==D||"default"==D&&"snip"==C)c.lineTo(ha+.5*I,t-I);else if("fold"==D||"default"==D&&"fold"==C)c.lineTo(I+ha,t-ha-I),c.lineTo(I+ha,t-I)};Na.prototype.moveSWInner=function(c,m,u,n,t,C,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==C?c.moveTo(I,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.extractGraphModelFromHtml=function(b){var e=null;try{var g=b.indexOf("&lt;mxGraphModel ");if(0<=g){var p=b.lastIndexOf("&lt;/mxGraphModel&gt;");p>g&&(e=b.substring(g,p+21).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}}catch(y){}return e};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(e,g,p){p.ui=e.ui;return g};b.afterDecode=function(e,g,p){p.previousColor=p.color;p.previousImage=p.image;p.previousFormat=p.format;null!=p.foldingEnabled&&(p.foldingEnabled=!p.foldingEnabled);null!=p.mathEnabled&&(p.mathEnabled=!p.mathEnabled);null!=p.shadowVisible&&(p.shadowVisible=!p.shadowVisible);return p};mxCodecRegistry.register(b)})();
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
0)};Na.prototype.paintRight=function(c,m,u,n,t,C,D,ha,I){"square"==D||"default"==D&&"square"==C||!I?c.lineTo(n,t):c.lineTo(n,t-ha)};Na.prototype.paintLeft=function(c,m,u,n,t,C,D,ha,I){"square"==D||"default"==D&&"square"==C||!I?c.lineTo(0,0):c.lineTo(0,ha)};Na.prototype.paintSE=function(c,m,u,n,t,C,D,ha,I){if(I)if("rounded"==D||"default"==D&&"rounded"==C||"invRound"==D||"default"==D&&"invRound"==C){m=0;if("rounded"==D||"default"==D&&"rounded"==C)m=1;c.arcTo(ha,ha,0,0,m,n-ha,t)}else("snip"==D||"default"== D&&"snip"==C||"fold"==D||"default"==D&&"fold"==C)&&c.lineTo(n-ha,t);else c.lineTo(n,t)};Na.prototype.paintBottom=function(c,m,u,n,t,C,D,ha,I){"square"==D||"default"==D&&"square"==C||!I?c.lineTo(0,t):c.lineTo(ha,t)};Na.prototype.paintSW=function(c,m,u,n,t,C,D,ha,I){if(I)if("rounded"==D||"default"==D&&"rounded"==C||"invRound"==D||"default"==D&&"invRound"==C){m=0;if("rounded"==D||"default"==D&&"rounded"==C)m=1;c.arcTo(ha,ha,0,0,m,0,t-ha)}else("snip"==D||"default"==D&&"snip"==C||"fold"==D||"default"==
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
HoverIcons.prototype.update=function(b,e,g){if(!this.graph.connectionArrowsEnabled||null!=this.graph.freehand&&this.graph.freehand.isDrawing()||null!=b&&"0"==mxUtils.getValue(b.style,"allowArrows","1"))this.reset();else{null!=b&&null!=b.cell.geometry&&b.cell.geometry.relative&&this.graph.model.isEdge(b.cell.parent)&&(b=null);var p=null;this.prev!=b||this.isActive()?(this.startTime=(new Date).getTime(),this.prev=b,p=0,null!=this.updateThread&&window.clearTimeout(this.updateThread),null!=b&&(this.updateThread= window.setTimeout(mxUtils.bind(this,function(){this.isActive()||this.graph.isMouseDown||this.graph.panningHandler.isActive()||(this.prev=b,this.update(b,e,g))}),this.updateDelay+10))):null!=this.startTime&&(p=(new Date).getTime()-this.startTime);this.setDisplay("");null!=this.currentState&&this.currentState!=b&&p<this.activationDelay&&null!=this.bbox&&!mxUtils.contains(this.bbox,e,g)?this.reset(!1):(null!=this.currentState||p>this.activationDelay)&&this.currentState!=b&&(p>this.updateDelay&&null!= b||null==this.bbox||null==e||null==g||!mxUtils.contains(this.bbox,e,g))&&(null!=b&&this.graph.isEnabled()?(this.removeNodes(),this.setCurrentState(b),this.repaint(),this.graph.connectionHandler.constraintHandler.currentFocus!=b&&this.graph.connectionHandler.constraintHandler.reset()):this.reset())}};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.executeLayout=function(b,e,g){var p=this.editor.graph;p.getModel().beginUpdate();try{b()}catch(y){throw y;}finally{this.allowAnimation&&e&&p.isEnabled()?(b=new mxMorphing(p),b.addListener(mxEvent.DONE,mxUtils.bind(this,function(){p.getModel().endUpdate();null!=g&&g()})),b.startAnimation()):(p.getModel().endUpdate(),null!=g&&g())}};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.rewritePageLinks=function(b){function e(p,y){var q=p.getAttribute(y);null!=q&&Graph.isPageLink(q)&&p.setAttribute(y,"#"+q.substring(q.indexOf(":")+1))}b=b.getElementsByTagName("a");for(var g=0;g<b.length;g++)e(b[g],"href"),e(b[g],"xlink:href")};Graph.isLink=function(b){return null!=b&&Graph.linkPattern.test(b)};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(c,m,u){c=[];var n=Math.max(0,Math.min(m,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(m-n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,m-n,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,m-.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,m,n));c.push(new mxConnectionConstraint(new mxPoint(0, 0),!1,null,m,.5*(u+n)));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));m>=2*n&&c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return c};z.prototype.getConstraints=function(c,m,u){c=[];var n=Math.max(0,Math.min(m,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(1,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
ta);mxUtils.extend(Aa,mxRectangleShape);Aa.prototype.dx=20;Aa.prototype.dy=20;Aa.prototype.isHtmlAllowed=function(){return!1};Aa.prototype.paintForeground=function(c,m,u,n,t){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var C=0;if(this.isRounded){var D=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;C=Math.max(C,Math.min(n*D,t*D))}D=Math.max(C,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));C=Math.max(C,Math.min(t, parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));c.begin();c.moveTo(m,u+C);c.lineTo(m+n,u+C);c.end();c.stroke();c.begin();c.moveTo(m+D,u);c.lineTo(m+D,u+t);c.end();c.stroke()};mxCellRenderer.registerShape("internalStorage",Aa);mxUtils.extend(Ea,mxActor);Ea.prototype.dx=20;Ea.prototype.dy=20;Ea.prototype.redrawPath=function(c,m,u,n,t){m=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));u=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.getCursorForMouseEvent=function(S){var da=null==S.state&&null!=S.sourceState&&this.isCellLocked(S.sourceState.cell);return this.getCursorForCell(da?S.sourceState.cell:S.getCell())};var fa=this.getCursorForCell;this.getCursorForCell=function(S){if(!this.isEnabled()||this.isCellLocked(S)){if(null!=this.getClickableLinkForCell(S))return"pointer";if(this.isCellLocked(S))return"default"}return fa.apply(this,arguments)};this.selectRegion=function(S,da){var P=mxEvent.isAltDown(da)?S:null;S=this.getCells(S.x,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
!1;this.graph.setEnabled(!1);1==this.graphConfig["toolbar-nohide"]&&(this.editor.defaultGraphOverflow="visible");this.xmlNode=this.editor.extractGraphModel(this.xmlNode,!0);this.xmlNode!=e&&(this.xml=mxUtils.getXml(this.xmlNode),this.xmlDocument=this.xmlNode.ownerDocument);var M=this;this.graph.getImageFromBundles=function(k){return M.getImageUrl(k)};mxClient.IS_SVG&&this.graph.addSvgShadow(this.graph.view.canvas.ownerSVGElement,null,!0);if("mxfile"==this.xmlNode.nodeName){var T=this.xmlNode.getElementsByTagName("diagram");
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function Z(){mxShape.call(this)}function U(){mxShape.call(this)}function aa(){mxRectangleShape.call(this)}function Y(){mxShape.call(this)}function ka(){mxShape.call(this)}function qa(){mxShape.call(this)}function ra(){mxShape.call(this)}function pa(){mxShape.call(this)}function wa(){mxCylinder.call(this)}function Ca(){mxCylinder.call(this)}function Ba(){mxRectangleShape.call(this)}function ya(){mxDoubleEllipse.call(this)}function Oa(){mxDoubleEllipse.call(this)}function Qa(){mxArrowConnector.call(this); this.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Da(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function Q(){mxEllipse.call(this)}
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
D&&"snip"==C||"fold"==D||"default"==D&&"fold"==C)&&c.lineTo(n-ha,t);else c.lineTo(n,t)};Na.prototype.paintBottom=function(c,m,u,n,t,C,D,ha,I){"square"==D||"default"==D&&"square"==C||!I?c.lineTo(0,t):c.lineTo(ha,t)};Na.prototype.paintSW=function(c,m,u,n,t,C,D,ha,I){if(I)if("rounded"==D||"default"==D&&"rounded"==C||"invRound"==D||"default"==D&&"invRound"==C){m=0;if("rounded"==D||"default"==D&&"rounded"==C)m=1;c.arcTo(ha,ha,0,0,m,0,t-ha)}else("snip"==D||"default"==D&&"snip"==C||"fold"==D||"default"== D&&"fold"==C)&&c.lineTo(0,t-ha);else c.lineTo(0,t)};Na.prototype.paintNWInner=function(c,m,u,n,t,C,D,ha,I){if("rounded"==D||"default"==D&&"rounded"==C)c.arcTo(ha-.5*I,ha-.5*I,0,0,0,I,.5*I+ha);else if("invRound"==D||"default"==D&&"invRound"==C)c.arcTo(ha+I,ha+I,0,0,1,I,I+ha);else if("snip"==D||"default"==D&&"snip"==C)c.lineTo(I,.5*I+ha);else if("fold"==D||"default"==D&&"fold"==C)c.lineTo(I+ha,I+ha),c.lineTo(I,I+ha)};Na.prototype.paintTopInner=function(c,m,u,n,t,C,D,ha,I,ua,na){ua||na?!ua&&na?c.lineTo(0,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
U.prototype.getLabelBounds=function(c){return new mxRectangle(c.x,c.y+c.height/8,c.width,7*c.height/8)};U.prototype.paintBackground=function(c,m,u,n,t){c.translate(m,u);c.begin();c.moveTo(3*n/8,t/8*1.1);c.lineTo(5*n/8,0);c.end();c.stroke();c.ellipse(0,t/8,n,7*t/8);c.fillAndStroke()};U.prototype.paintForeground=function(c,m,u,n,t){c.begin();c.moveTo(3*n/8,t/8*1.1);c.lineTo(5*n/8,t/4);c.end();c.stroke()};mxCellRenderer.registerShape("umlControl",U);mxUtils.extend(aa,mxRectangleShape);aa.prototype.size=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxUtils.getValue(L,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL)==mxConstants.ELBOW_HORIZONTAL?mxConstants.ELBOW_VERTICAL:mxConstants.ELBOW_HORIZONTAL;this.setCellStyles(mxConstants.STYLE_ELBOW,L,[x])}};Graph.prototype.isValidRoot=function(x){for(var L=this.model.getChildCount(x),Q=0,X=0;X<L;X++){var ea=this.model.getChildAt(x,X);this.model.isVertex(ea)&&(ea=this.getCellGeometry(ea),null==ea||ea.relative||Q++)}return 0<Q||this.isContainer(x)};Graph.prototype.isValidDropTarget=function(x,L, Q){for(var X=this.getCurrentCellStyle(x),ea=!0,la=!0,oa=0;oa<L.length&&la;oa++)ea=ea&&this.isTable(L[oa]),la=la&&this.isTableRow(L[oa]);return!this.isCellLocked(x)&&(1==L.length&&null!=Q&&mxEvent.isShiftDown(Q)&&!mxEvent.isControlDown(Q)&&!mxEvent.isAltDown(Q)||this.isTargetShape(x,L,Q)||("1"!=mxUtils.getValue(X,"part","0")||this.isContainer(x))&&"0"!=mxUtils.getValue(X,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(x))&&!this.isTableRow(x)&&(!this.isTable(x)|| la||ea))};Graph.prototype.createGroupCell=function(){var x=mxGraph.prototype.createGroupCell.apply(this,arguments);x.setStyle("group");return x};Graph.prototype.isExtendParentsOnAdd=function(x){var L=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(L&&null!=x&&null!=this.layoutManager){var Q=this.model.getParent(x);null!=Q&&(Q=this.layoutManager.getLayout(Q),null!=Q&&Q.constructor==mxStackLayout&&(L=!1))}return L};Graph.prototype.getPreferredSizeForCell=function(x){var L=mxGraph.prototype.getPreferredSizeForCell.apply(this,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.showImageDialog=function(b,e,g,p){p=this.editor.graph.cellEditor;var y=p.saveSelection(),q=mxUtils.prompt(b,e);p.restoreSelection(y);if(null!=q&&0<q.length){var E=new Image;E.onload=function(){g(q,E.width,E.height)};E.onerror=function(){g(null);mxUtils.alert(mxResources.get("fileNotFound"))};E.src=q}else g(null)};EditorUi.prototype.showLinkDialog=function(b,e,g){b=new LinkDialog(this,b,e,g);this.showDialog(b.container,420,90,!0,!0);b.init()};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Da(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function Q(){mxEllipse.call(this)}
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
oa))}}finally{L.endUpdate()}};Graph.prototype.insertRow=function(x,L){for(var Q=x.tBodies[0],X=Q.rows[0].cells,ea=x=0;ea<X.length;ea++){var la=X[ea].getAttribute("colspan");x+=null!=la?parseInt(la):1}L=Q.insertRow(L);for(ea=0;ea<x;ea++)mxUtils.br(L.insertCell(-1));return L.cells[0]};Graph.prototype.deleteRow=function(x,L){x.tBodies[0].deleteRow(L)};Graph.prototype.insertColumn=function(x,L){var Q=x.tHead;if(null!=Q)for(var X=0;X<Q.rows.length;X++){var ea=document.createElement("th");Q.rows[X].appendChild(ea);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
k&&k(),ba(),mxEvent.consume(da)):S()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(fa.style,"transform",J)}),ja/2);window.setTimeout(S,z?4E3:3E4);G=!0}return G};EditorUi.prototype.setCurrentFile=function(d){null!=d&&(d.opened=new Date);this.currentFile=d};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(d,f,k,v){d=d.toDataURL("image/"+
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.fadeNodes=function(b,e,g,p,y){y=null!=y?y:1E3;Graph.setTransitionForNodes(b,null);Graph.setOpacityForNodes(b,e);window.setTimeout(function(){Graph.setTransitionForNodes(b,"all "+y+"ms ease-in-out");Graph.setOpacityForNodes(b,g);window.setTimeout(function(){Graph.setTransitionForNodes(b,null);null!=p&&p()},y)},0)};Graph.removeKeys=function(b,e){for(var g in b)e(g)&&delete b[g]};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"size",this.size)),D=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;c.translate(m,u);c.begin();c.moveTo(n/2,C+D);c.lineTo(n/2,t);c.end();c.stroke();c.begin();c.moveTo((n-C)/2-D,C/2);c.quadTo((n-C)/2-D,C+D,n/2,C+D);c.quadTo((n+C)/2+D,C+D,(n+C)/2+D,C/2);c.end();c.stroke()};mxCellRenderer.registerShape("requires",qa);mxUtils.extend(ra,mxShape);ra.prototype.paintBackground=function(c,m,u,n,t){c.translate(m,u);c.begin();c.moveTo(0,0);c.quadTo(n,0,n,t/2);c.quadTo(n,t,0,t); c.end();c.stroke()};mxCellRenderer.registerShape("requiredInterface",ra);mxUtils.extend(pa,mxShape);pa.prototype.inset=2;pa.prototype.paintBackground=function(c,m,u,n,t){var C=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;c.translate(m,u);c.ellipse(0,C,n-2*C,t-2*C);c.fillAndStroke();c.begin();c.moveTo(n/2,0);c.quadTo(n,0,n,t/2);c.quadTo(n,t,n/2,t);c.end();c.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",pa);mxUtils.extend(wa,mxCylinder);wa.prototype.jettyWidth=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.recentCustomFonts[Z]=U,B=document.getElementsByTagName("head")[0],null!=N&&("link"==U.elt.nodeName.toLowerCase()?(U.elt.onload=N,U.elt.onerror=N):N()),null!=B&&B.appendChild(U.elt)):null!=N&&N()}else null!=N&&N()}else null!=N&&N();return l};Graph.getFontUrl=function(l,B){l=Graph.customFontElements[l.toLowerCase()];null!=l&&(B=l.url);return B};Graph.processFontAttributes=function(l){l=l.getElementsByTagName("*");for(var B=0;B<l.length;B++){var N=l[B].getAttribute("data-font-src");if(null!=N){var Z=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
C,u),c.lineTo(m+n-C,u),c.quadTo(m+n,u,m+n,u+C),c.lineTo(m+n,u+t-C),c.quadTo(m+n,u+t,m+n-C,u+t),c.lineTo(m+C,u+t),c.quadTo(m,u+t,m,u+t-C),c.lineTo(m,u+C),c.quadTo(m,u,m+C,u)):(c.moveTo(m,u),c.lineTo(m+n,u),c.lineTo(m+n,u+t),c.lineTo(m,u+t),c.lineTo(m,u)),c.close(),c.end(),c.fillAndStroke()}};mxUtils.extend(ca,mxRectangleShape);ca.prototype.size=.1;ca.prototype.fixedSize=!1;ca.prototype.isHtmlAllowed=function(){return!1};ca.prototype.getLabelBounds=function(c){if(mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
ma.width=ja;ma.height=fa;var ba=ma.toDataURL();ia!==ba&&(f=ia,J=ja,O=fa)}}}catch(S){}k(f,J,O)};EditorUi.prototype.extractGraphModelFromPng=function(d){return Editor.extractGraphModelFromPng(d)};EditorUi.prototype.loadImage=function(d,f,k){try{var v=new Image;v.onload=function(){v.width=0<v.width?v.width:120;v.height=0<v.height?v.height:120;f(v)};null!=k&&(v.onerror=k);v.src=d}catch(z){if(null!=k)k(z);else throw z;}};EditorUi.prototype.getDefaultSketchMode=function(){var d="1"==urlParams.sketch;return"0"!=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
DrawioFile.prototype.saveFile=function(b,e,g,p){};DrawioFile.prototype.getFileUrl=function(){return null};DrawioFile.prototype.getFolderUrl=function(b){return null};DrawioFile.prototype.getPublicUrl=function(b){b(null)};DrawioFile.prototype.isRestricted=function(){return DrawioFile.RESTRICT_EXPORT};DrawioFile.prototype.isModified=function(){return this.modified};DrawioFile.prototype.getShadowModified=function(){return this.shadowModified};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.executeLayout=function(b,e,g){var p=this.editor.graph;p.getModel().beginUpdate();try{b()}catch(y){throw y;}finally{this.allowAnimation&&e&&p.isEnabled()?(b=new mxMorphing(p),b.addListener(mxEvent.DONE,mxUtils.bind(this,function(){p.getModel().endUpdate();null!=g&&g()})),b.startAnimation()):(p.getModel().endUpdate(),null!=g&&g())}};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Editor.prototype.convertImages=function(l,B,N,Z){null==Z&&(Z=this.createImageUrlConverter());var U=0,aa=N||{};N=mxUtils.bind(this,function(Y,ka){Y=l.getElementsByTagName(Y);for(var qa=0;qa<Y.length;qa++)mxUtils.bind(this,function(ra){try{if(null!=ra){var pa=Z.convert(ra.getAttribute(ka));if(null!=pa&&"data:"!=pa.substring(0,5)){var wa=aa[pa];null==wa?(U++,this.convertImageToDataUri(pa,function(Ca){null!=Ca&&(aa[pa]=Ca,ra.setAttribute(ka,Ca));U--;0==U&&B(l)})):ra.setAttribute(ka,wa)}else null!=pa&& ra.setAttribute(ka,pa)}}catch(Ca){}})(Y[qa])});N("image","xlink:href");N("img","src");0==U&&B(l)};Editor.base64Encode=function(l){for(var B="",N=0,Z=l.length,U,aa,Y;N<Z;){U=l.charCodeAt(N++)&255;if(N==Z){B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(U>>2);B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((U&3)<<4);B+="==";break}aa=l.charCodeAt(N++);if(N==Z){B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(U>>2);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Da(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function Q(){mxEllipse.call(this)}
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
0;v^=f}return v};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(d,f,k,v,z,A,H){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(d){null==d&&(d=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
b.view.getState(p[q])&&y.push(p[q]);b.setSelectionCells(y)}};e.addListener(mxEvent.UNDO,g);e.addListener(mxEvent.REDO,g);return e};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(b){this.consumer=this.producer=null;this.done=b;this.args=null};OpenFile.prototype.setConsumer=function(b){this.consumer=b;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Z=null;0<N.length?(l=Graph.decompress(N,null,B),null!=l&&0<l.length&&(Z=mxUtils.parseXml(l).documentElement)):(l=mxUtils.getChildNodes(l),0<l.length&&(Z=mxUtils.createXmlDocument(),Z.appendChild(Z.importNode(l[0],!0)),Z=Z.documentElement));return Z};Editor.getDiagramNodeXml=function(l){var B=mxUtils.getTextContent(l),N=null;0<B.length?N=Graph.decompress(B):null!=l.firstChild&&(N=mxUtils.getXml(l.firstChild));return N};Editor.extractGraphModelFromPdf=function(l){l=l.substring(l.indexOf(",")+1);l=window.atob&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
ja.prototype.redrawPath=function(c,m,u,n,t){c.setStrokeWidth(1);c.setFillColor(this.stroke);m=n/5;c.rect(0,0,m,t);c.fillAndStroke();c.rect(2*m,0,m,t);c.fillAndStroke();c.rect(4*m,0,m,t);c.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",ja);fa.prototype.moveTo=function(c,m){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=m;this.firstX=c;this.firstY=m};fa.prototype.close=function(){null!=this.firstX&&null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas, arguments));this.originalClose.apply(this.canvas,arguments)};fa.prototype.quadTo=function(c,m,u,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=u;this.lastY=n};fa.prototype.curveTo=function(c,m,u,n,t,C){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=C};fa.prototype.arcTo=function(c,m,u,n,t,C,D){this.originalArcTo.apply(this.canvas,arguments);this.lastX=C;this.lastY=D};fa.prototype.lineTo=function(c,m){if(null!=this.lastX&&null!=this.lastY){var u=function(na){return"number"===
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.prototype.getParentByName=function(x,L,Q){for(;null!=x&&x.nodeName!=L;){if(x==Q)return null;x=x.parentNode}return x};Graph.prototype.getParentByNames=function(x,L,Q){for(;null!=x&&!(0<=mxUtils.indexOf(L,x.nodeName));){if(x==Q)return null;x=x.parentNode}return x};Graph.prototype.selectNode=function(x){var L=null;if(window.getSelection){if(L=window.getSelection(),L.getRangeAt&&L.rangeCount){var Q=document.createRange();Q.selectNode(x);L.removeAllRanges();L.addRange(Q)}}else(L=document.selection)&& "Control"!=L.type&&(x=L.createRange(),x.collapse(!0),Q=L.createRange(),Q.setEndPoint("StartToStart",x),Q.select())};Graph.prototype.flipEdgePoints=function(x,L,Q){var X=this.getCellGeometry(x);if(null!=X){X=X.clone();if(null!=X.points)for(var ea=0;ea<X.points.length;ea++)L?X.points[ea].x=Q+(Q-X.points[ea].x):X.points[ea].y=Q+(Q-X.points[ea].y);ea=function(la){null!=la&&(L?la.x=Q+(Q-la.x):la.y=Q+(Q-la.y))};ea(X.getTerminalPoint(!0));ea(X.getTerminalPoint(!1));this.model.setGeometry(x,X)}};Graph.prototype.flipChildren=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxUtils.bind(this,fa.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,fa.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function ia(){mxRectangleShape.call(this)}function ma(){mxActor.call(this)}function ba(){mxActor.call(this)}function S(){mxActor.call(this)}function da(){mxRectangleShape.call(this)}function P(){mxRectangleShape.call(this)}function V(){mxCylinder.call(this)}function l(){mxShape.call(this)}function B(){mxShape.call(this)}function N(){mxEllipse.call(this)}
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Da(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function Q(){mxEllipse.call(this)}
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
GraphViewer.logAncestorFrames()}catch(e){}};GraphViewer.cachedUrls={};GraphViewer.getUrl=function(b,e,g){if(null!=GraphViewer.cachedUrls[b])e(GraphViewer.cachedUrls[b]);else{var p=null!=navigator.userAgent&&0<navigator.userAgent.indexOf("MSIE 9")?new XDomainRequest:new XMLHttpRequest;p.open("GET",b);p.onload=function(){e(null!=p.getText?p.getText():p.responseText)};p.onerror=g;p.send()}};GraphViewer.resizeSensorEnabled=!0;GraphViewer.useResizeObserver=!0;GraphViewer.useResizeSensor=!0;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
d.getSize(),label:"autosave_"+(this.editor.autosave?"on":"off")+"_theme_"+H})}EditorUi.debug("File.opened",[d]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==d.getMode()&&d.getMode()!=App.MODE_DEVICE&&null!=d.getMode())try{this.addRecent({id:d.getHash(),title:d.getTitle(),mode:d.getMode()})}catch(J){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(J){}}catch(J){this.fileLoadedError=J;if(null!= d)try{d.close()}catch(O){}if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logEvent({category:"ERROR-LOAD-FILE-"+(null!=d?d.getHash():"none"),action:"message_"+J.message,label:"stack_"+J.stack})}catch(O){}d=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=v?this.fileLoaded(v)||A():A()});f?d():this.handleError(J,mxResources.get("errorLoadingFile"),d,!0,null,null,!0)}else A(); return z};EditorUi.prototype.getHashValueForPages=function(d,f){var k=0,v=new mxGraphModel,z=new mxCodec;null!=f&&(f.byteCount=0,f.attrCount=0,f.eltCount=0,f.nodeCount=0);for(var A=0;A<d.length;A++){this.updatePageRoot(d[A]);var H=d[A].node.cloneNode(!1);H.removeAttribute("name");v.root=d[A].root;var J=z.encode(v);this.editor.graph.saveViewState(d[A].viewState,J,!0);J.removeAttribute("pageWidth");J.removeAttribute("pageHeight");H.appendChild(J);null!=f&&(f.eltCount+=H.getElementsByTagName("*").length,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
E)};Graph.prototype.isGlassState=function(E){E=mxUtils.getValue(E.style,mxConstants.STYLE_SHAPE,null);return"label"==E||"rectangle"==E||"internalStorage"==E||"ext"==E||"umlLifeline"==E||"swimlane"==E||"process"==E};Graph.prototype.isRoundedState=function(E){return null!=E.shape?E.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(E.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(E){var M=mxUtils.getValue(E.style,mxConstants.STYLE_SHAPE,null);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
n,t){m=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(0,0);c.lineTo(n,0);c.lineTo(n,t-m/2);c.quadTo(3*n/4,t-1.4*m,n/2,t-m/2);c.quadTo(n/4,t-m*(1-1.4),0,t-m/2);c.lineTo(0,m/2);c.close();c.end()};mxCellRenderer.registerShape("document",H);var lb=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(c,m,u,n){var t=mxUtils.getValue(this.style,"size");return null!=t?n*Math.max(0,Math.min(1,t)):lb.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
SelectPage.prototype.execute=function(){var b=mxUtils.indexOf(this.ui.pages,this.previousPage);if(null!=this.page&&0<=b){b=this.ui.currentPage;var e=this.ui.editor,g=e.graph,p=Graph.compressNode(e.getGraphXml(!0));mxUtils.setTextContent(b.node,p);b.viewState=g.getViewState();b.root=g.model.root;null!=b.model&&b.model.rootChanged(b.root);g.view.clear(b.root,!0);g.clearSelection();this.ui.currentPage=this.previousPage;this.previousPage=b;b=this.ui.currentPage;g.model.prefix=Editor.guid()+"-";g.model.rootChanged(b.root); g.setViewState(b.viewState);g.gridEnabled=g.gridEnabled&&(!this.ui.editor.isChromelessView()||"1"==urlParams.grid);e.graph.fireEvent(new mxEventObject(mxEvent.ROOT));e.fireEvent(new mxEventObject("pageSelected","change",this))}};function ChangePage(b,e,g,p,y){SelectPage.call(this,b,g);this.relatedPage=e;this.index=p;this.previousIndex=null;this.noSelect=y}mxUtils.extend(ChangePage,SelectPage);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
O.model.execute(P)}}H&&this.insertHandler(J,null,null,O.defaultVertexStyle,O.defaultEdgeStyle,!1,!0)}finally{O.model.endUpdate()}}}catch(V){if(z)throw V;this.handleError(V)}return J};EditorUi.prototype.updatePageLinks=function(d,f){for(var k=0;k<f.length;k++)this.updatePageLinksForCell(d,f[k].root),null!=f[k].viewState&&this.updateBackgroundPageLink(d,f[k].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(d,f){try{if(null!=f&&Graph.isPageLink(f.originalSrc)){var k=d[f.originalSrc.substring(f.originalSrc.indexOf(",")+
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.arrayBufferIndexOfString=function(b,e,g){var p=e.charCodeAt(0),y=1,q=-1;for(g=g||0;g<b.byteLength;g++)if(b[g]==p){q=g;break}for(g=q+1;-1<q&&g<b.byteLength&&g<q+e.length-1;g++){if(b[g]!=e.charCodeAt(y))return Graph.arrayBufferIndexOfString(b,e,q+1);y++}return y==e.length-1?q:-1};Graph.compress=function(b,e){if(null==b||0==b.length||"undefined"===typeof pako)return b;b=e?pako.deflate(encodeURIComponent(b)):pako.deflateRaw(encodeURIComponent(b));return btoa(Graph.arrayBufferToString(new Uint8Array(b)))};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
c.lineTo(m+n,u);c.lineTo(m+n,u+t);c.lineTo(m,u+t);c.lineTo(m,u+ha);c.stroke()};mxCellRenderer.registerShape("umlFrame",Y);mxPerimeter.CenterPerimeter=function(c,m,u,n){return new mxPoint(c.getCenterX(),c.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(c,m,u,n){n=aa.prototype.size;null!=m&&(n=mxUtils.getValue(m.style,"size",n)*m.view.scale);m=parseFloat(m.style[mxConstants.STYLE_STROKEWIDTH]||1)*m.view.scale/2-1;u.x<c.getCenterX()&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
q&&(this.lastAutosaveRevision=(new Date).getTime());this.save(q,mxUtils.bind(this,function(E){this.autosaveCompleted();null!=g&&g(E)}),mxUtils.bind(this,function(E){null!=p&&p(E)}))}else this.isModified()||this.ui.editor.setStatus(""),null!=g&&g(null)}catch(E){null!=p&&p(E)}}),b);EditorUi.debug("DrawioFile.autosave",[this],"thread",y,"delay",b,"saving",this.savingFile);this.autosaveThread=y};DrawioFile.prototype.isAutosaveNow=function(){return!0};DrawioFile.prototype.autosaveCompleted=function(){};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Math.max(1,Math.min(ka,Math.max(parseInt(Ca.value),parseInt(wa.value))));wa.value=Math.max(1,Math.min(ka,Math.min(parseInt(Ca.value),parseInt(wa.value))))}function Z(X){function ea(Pa,eb,jb,ib){var mb=Pa.useCssTransforms,wb=Pa.currentTranslate,xb=Pa.currentScale,rb=Pa.view.translate,nb=Pa.view.scale;Pa.useCssTransforms&&(Pa.useCssTransforms=!1,Pa.currentTranslate=new mxPoint(0,0),Pa.currentScale=1,Pa.view.translate=new mxPoint(0,0),Pa.view.scale=1);var ub=Pa.getGraphBounds(),gb=0,tb=0,ob=L.get(), pb=1/Pa.pageScale,hb=Ta.checked;if(hb){pb=parseInt(Ma.value);var Ab=parseInt(x.value);pb=Math.min(ob.height*Ab/(ub.height/Pa.view.scale),ob.width*pb/(ub.width/Pa.view.scale))}else pb=parseInt(Qa.value)/(100*Pa.pageScale),isNaN(pb)&&(la=1/Pa.pageScale,Qa.value="100 %");ob=mxRectangle.fromRectangle(ob);ob.width=Math.ceil(ob.width*la);ob.height=Math.ceil(ob.height*la);pb*=la;!hb&&Pa.pageVisible?(ub=Pa.getPageLayout(),gb-=ub.x*ob.width,tb-=ub.y*ob.height):hb=!0;ib=null!=ib?"page/id,"+ib:null;if(null==
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(aa){var Y=aa.addTolerance,ka=!0;null!=this.style&&(ka="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=aa.handJiggle&&aa.handJiggle.constructor==l&&!this.outline){aa.save();var qa=this.fill,ra=this.stroke;this.stroke=this.fill=null;var pa=this.configurePointerEvents,wa=aa.setStrokeColor;aa.setStrokeColor=function(){};var Ca=aa.setFillColor;aa.setFillColor=function(){};ka||null==qa||(this.configurePointerEvents=function(){});aa.handJiggle.passThrough=!0;Z.apply(this,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
parseFloat(mxUtils.getValue(this.style,"size",this.size));var C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,u),new mxPoint(m,u),new mxPoint(m,t),new mxPoint(0,t)],this.isRounded,C,!0);c.end()};mxCellRenderer.registerShape("corner",Ea);mxUtils.extend(za,mxActor);za.prototype.redrawPath=function(c,m,u,n,t){c.moveTo(0,0);c.lineTo(0,t);c.end();c.moveTo(n,0);c.lineTo(n,t);c.end();c.moveTo(0,t/2);c.lineTo(n, t/2);c.end()};mxCellRenderer.registerShape("crossbar",za);mxUtils.extend(Va,mxActor);Va.prototype.dx=20;Va.prototype.dy=20;Va.prototype.redrawPath=function(c,m,u,n,t){m=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));u=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var C=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
X.getCellAt(eb.getGraphX(),eb.getGraphY())||oa.cell;X.graphHandler.selectCellForEvent(jb,eb)}kb=0};$a.positionChanged=function(){};$a.reset=function(){kb=0};x.push($a)})(ea)}}return null!=x?x.reverse():null};var B=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(x){B.apply(this,arguments);if(null!=this.moveHandles)for(var L=0;L<this.moveHandles.length;L++)null!=this.moveHandles[L]&&(this.moveHandles[L].node.style.visibility=x?"":"hidden");if(null!=this.cornerHandles)for(L=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
(S="1"==f.getCurrentCellStyle(ba).treeMoving);return S}function q(ba){var S=!1;null!=ba&&(ba=k.getParent(ba),S=f.view.getState(ba),S="tree"==(null!=S?S.style:f.getCellStyle(ba)).containerType);return S}function E(ba){var S=!1;null!=ba&&(ba=k.getParent(ba),S=f.view.getState(ba),f.view.getState(ba),S=null!=(null!=S?S.style:f.getCellStyle(ba)).childLayout);return S}function M(ba){ba=f.view.getState(ba);if(null!=ba){var S=f.getIncomingTreeEdges(ba.cell);if(0<S.length&&(S=f.view.getState(S[0]),null!=S&& (S=S.absolutePoints,null!=S&&0<S.length&&(S=S[S.length-1],null!=S)))){if(S.y==ba.y&&Math.abs(S.x-ba.getCenterX())<ba.width/2)return mxConstants.DIRECTION_SOUTH;if(S.y==ba.y+ba.height&&Math.abs(S.x-ba.getCenterX())<ba.width/2)return mxConstants.DIRECTION_NORTH;if(S.x>ba.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function T(ba,S){S=null!=S?S:!0;f.model.beginUpdate();try{var da=f.model.getParent(ba),P=f.getIncomingTreeEdges(ba),V=f.cloneCells([P[0],ba]);f.model.setTerminal(V[0],
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.createTimeout=function(b,e,g){var p=!0,y=null,q=mxUtils.bind(this,function(M){y.clear()&&(p=!1,M=null!=M?M:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(b,e,g)})},null!=g?g(M):this.handleError(M))}),E=window.setTimeout(q,null!=b?b:this.timeout);y={clear:function(){window.clearTimeout(E);return p},isAlive:function(){return p}};null!=e&&this.tryAndHandle(mxUtils.bind(this,function(){e(y)}),q);return y};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
return!mxUtils.getValue(E.style,mxConstants.STYLE_CURVED,!1)&&("connector"==M||"filledEdge"==M||"wire"==M)};Graph.prototype.isAutoSizeState=function(E){return"1"==mxUtils.getValue(E.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(E){return null!=mxUtils.getValue(E.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(E){return"image"!=mxUtils.getValue(E.style,mxConstants.STYLE_SHAPE,null)};Graph.prototype.getVerticesAndEdges=function(E,M){E=null!=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.currentState=this.currentTarget=null;null!=this.highlight&&this.highlight.hide();null!=oa.tooltipHandler&&oa.tooltipHandler.hide()}};oa.click=function(sa){};oa.addMouseListener(xa);mxEvent.addListener(document,"mouseleave",function(sa){xa.clear()})};Graph.prototype.duplicateCells=function(x,L){x=null!=x?x:this.getSelectionCells();L=null!=L?L:!0;for(var Q=0;Q<x.length;Q++)this.isTableCell(x[Q])&&(x[Q]=this.model.getParent(x[Q]));x=this.model.getTopmostCells(x);var X=this.getModel(),ea=this.gridSize,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function Z(){mxShape.call(this)}function U(){mxShape.call(this)}function aa(){mxRectangleShape.call(this)}function Y(){mxShape.call(this)}function ka(){mxShape.call(this)}function qa(){mxShape.call(this)}function ra(){mxShape.call(this)}function pa(){mxShape.call(this)}function wa(){mxCylinder.call(this)}function Ca(){mxCylinder.call(this)}function Ba(){mxRectangleShape.call(this)}function ya(){mxDoubleEllipse.call(this)}function Oa(){mxDoubleEllipse.call(this)}function Qa(){mxArrowConnector.call(this);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
FilenameDialog.createTypeHint=function(b,e,g){var p=document.createElement("img");p.style.backgroundPosition="center bottom";p.style.backgroundRepeat="no-repeat";p.style.margin="2px 0 0 4px";p.style.verticalAlign="top";p.style.cursor="pointer";p.style.height="16px";p.style.width="16px";mxUtils.setOpacity(p,70);var y=function(){p.setAttribute("src",Editor.helpImage);p.setAttribute("title",mxResources.get("help"));for(var q=0;q<g.length;q++)if(0<g[q].ext.length&&e.value.toLowerCase().substring(e.value.length- g[q].ext.length-1)=="."+g[q].ext){p.setAttribute("title",mxResources.get(g[q].title));break}};mxEvent.addListener(e,"keyup",y);mxEvent.addListener(e,"change",y);mxEvent.addListener(p,"click",function(q){var E=p.getAttribute("title");p.getAttribute("src")==Editor.helpImage?b.editor.graph.openLink(FilenameDialog.filenameHelpLink):""!=E&&b.showError(null,E,mxResources.get("help"),function(){b.editor.graph.openLink(FilenameDialog.filenameHelpLink)},null,mxResources.get("ok"),null,null,null,340,90);mxEvent.consume(q)});
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Graph.prototype.init=function(b){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(g,p){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var y=g.view.graph.tolerance,q=!0,E=null,M=mxUtils.bind(this,function(K){q=!0;E=new mxPoint(mxEvent.getClientX(K),mxEvent.getClientY(K))}),T=mxUtils.bind(this,function(K){q=q&&null!=E&&Math.abs(E.x-mxEvent.getClientX(K))<y&&Math.abs(E.y-mxEvent.getClientY(K))<y}),F=mxUtils.bind(this,function(K){if(q)for(var R=mxEvent.getSource(K);null!= R&&R!=p.node;){if("a"==R.nodeName.toLowerCase()){g.view.graph.labelLinkClicked(g,R,K);break}R=R.parentNode}});mxEvent.addGestureListeners(p.node,M,T,F);mxEvent.addListener(p.node,"click",function(K){mxEvent.consume(K)})};if(null!=this.tooltipHandler){var e=this.tooltipHandler.init;this.tooltipHandler.init=function(){e.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(g){var p=mxEvent.getSource(g);"A"==p.nodeName&&(p=p.getAttribute("href"),null!= p&&this.graph.isCustomLink(p)&&(mxEvent.isTouchEvent(g)||!mxEvent.isPopupTrigger(g))&&this.graph.customLinkClicked(p)&&mxEvent.consume(g))}))}}this.addListener(mxEvent.SIZE,mxUtils.bind(this,function(g,p){null!=this.container&&this.flowAnimationStyle&&(g=this.flowAnimationStyle.getAttribute("id"),this.flowAnimationStyle.innerHTML=this.getFlowAnimationStyleCss(g))}));this.initLayoutManager()};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxUtils.getValue(L,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL)==mxConstants.ELBOW_HORIZONTAL?mxConstants.ELBOW_VERTICAL:mxConstants.ELBOW_HORIZONTAL;this.setCellStyles(mxConstants.STYLE_ELBOW,L,[x])}};Graph.prototype.isValidRoot=function(x){for(var L=this.model.getChildCount(x),Q=0,X=0;X<L;X++){var ea=this.model.getChildAt(x,X);this.model.isVertex(ea)&&(ea=this.getCellGeometry(ea),null==ea||ea.relative||Q++)}return 0<Q||this.isContainer(x)};Graph.prototype.isValidDropTarget=function(x,L,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe