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
ra(ya.name,ya.values[N],{type:ya.type,parentRow:ya.parentRow,isDeletable:ya.isDeletable,index:N,defVal:ya.defVal,countProperty:ya.countProperty,size:ya.size},0==N%2,ya.flipBkg),B.parentNode.insertBefore(Ea,B.nextSibling),B=Ea;l.appendChild(Ba);Ta();return l};StyleFormatPanel.prototype.addStyles=function(l){if(null!=this.defaultColorSchemes){var B=function(ya){mxEvent.addListener(ya,"mouseenter",function(){ya.style.opacity="1"});mxEvent.addListener(ya,"mouseleave",function(){ya.style.opacity="0.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
0,Oa.width,Oa.height),P)}qa=!0}catch(Qa){null!=window.console&&console.log("error in drop handler:",Qa)}qa||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=A&&null!=A.parentNode&&0<f.length&&(A.parentNode.removeChild(A),A=null)});null!=ka&&null!=aa&&(/(\.v(dx|sdx?))($|\?)/i.test(aa)||/(\.vs(x|sx?))($|\?)/i.test(aa))?this.importVisio(ka,function(pa){ra(pa,"text/xml")},null,aa):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(V,aa)&&null!=ka?this.isExternalDataComms()?
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
"undefined"!==typeof window.mxUtilsBinaryToArray){pa=mxUtilsBinaryToArray(pa.request.responseBody).toArray();wa=Array(pa.length);for(var Ca=0;Ca<pa.length;Ca++)wa[Ca]=String.fromCharCode(pa[Ca]);wa=wa.join("")}aa=null!=aa?aa:"data:image/png;base64,";wa=aa+Editor.base64Encode(wa)}B(wa)}}else null!=N&&(0==pa.getStatus()?N({message:mxResources.get("accessDenied")},pa):404==pa.getStatus()?N({code:pa.getStatus()},pa):N({message:mxResources.get("error")+" "+pa.getStatus()},pa))}),function(pa){null!=N&&
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 null};mxCellEditor.prototype.restoreSelection=function(x){try{if(x)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var L=0,Q=x.length;L<Q;++L)sel.addRange(x[L])}else document.selection&&x.select&&x.select()}catch(X){}};var v=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(x){null!=x.text&&(x.text.replaceLinefeeds="0"!=mxUtils.getValue(x.style,"nl2Br","1"));v.apply(this,arguments)};var z=mxConstraintHandler.prototype.update;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
G,k,v,ja,ia)}catch(ma){this.handleError(ma)}}))}catch(ia){this.handleError(ia)}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,A,H,null,1<z,O,d,k,v);A=this.isServices(z)?z>O?390:280:160;this.showDialog(f.container,420,A,!0,!0);f.init()};EditorUi.prototype.openInNewWindow=function(d,f,k){var v=window.open("about:blank");null==v||null==v.document?mxUtils.popup(d,!0):("image/svg+xml"!=f||mxClient.IS_SVG?"image/svg+xml"!=f||k?(d=k?d:btoa(unescape(encodeURIComponent(d))), v.document.write('<html><img style="max-width:100%;" src="data:'+f+";base64,"+d+'"/></html>')):v.document.write("<html>"+d+"</html>"):v.document.write("<html><pre>"+mxUtils.htmlEntities(d,!1)+"</pre></html>"),v.document.close())};var p=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=
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.createEdgeWipeAnimation=function(b,e){var g=b.absolutePoints.slice(),p=b.segments,y=b.length,q=g.length;return{execute:mxUtils.bind(this,function(E,M){if(null!=b.shape){var T=[g[0]];M=E/M;e||(M=1-M);for(var F=y*M,K=1;K<q;K++)if(F<=p[K-1]){T.push(new mxPoint(g[K-1].x+(g[K].x-g[K-1].x)*F/p[K-1],g[K-1].y+(g[K].y-g[K-1].y)*F/p[K-1]));break}else F-=p[K-1],T.push(g[K]);b.shape.points=T;b.shape.redraw();0==E&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!= b.text.node&&(b.text.node.style.opacity=M)}}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.points=g,b.shape.redraw(),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1: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
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;
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)&&""==this.getLabel(E)&&0<this.model.getChildCount(E)&&(E=this.model.getChildAt(E,0),M=this.getCellStyle(E),M=parseInt(mxUtils.getValue(M,mxConstants.STYLE_STARTSIZE,0)));if(this.isTableRow(E)&&(!this.isSwimlane(E)||0==M)&&""==this.getLabel(E)&&0<this.model.getChildCount(E))for(M=0;M<this.model.getChildCount(E);M++){var T=this.model.getChildAt(E,M);if(this.isCellEditable(T)){E=T;break}}return E};Graph.prototype.copyStyle=function(E){return this.getCellStyle(E,!1)};Graph.prototype.pasteStyle=
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
mxCellEditor.prototype.installListeners=function(x){function L(ea,la){la.originalNode=ea;ea=ea.firstChild;for(var oa=la.firstChild;null!=ea&&null!=oa;)L(ea,oa),ea=ea.nextSibling,oa=oa.nextSibling;return la}function Q(ea,la){if(null!=ea)if(la.originalNode!=ea)X(ea);else for(ea=ea.firstChild,la=la.firstChild;null!=ea;){var oa=ea.nextSibling;null==la?X(ea):(Q(ea,la),la=la.nextSibling);ea=oa}}function X(ea){for(var la=ea.firstChild;null!=la;){var oa=la.nextSibling;X(la);la=oa}1==ea.nodeType&&("BR"=== ea.nodeName||null!=ea.firstChild)||3==ea.nodeType&&0!=mxUtils.trim(mxUtils.getTextContent(ea)).length?(3==ea.nodeType&&mxUtils.setTextContent(ea,mxUtils.getTextContent(ea).replace(/\n|\r/g,"")),1==ea.nodeType&&(ea.removeAttribute("style"),ea.removeAttribute("class"),ea.removeAttribute("width"),ea.removeAttribute("cellpadding"),ea.removeAttribute("cellspacing"),ea.removeAttribute("border"))):ea.parentNode.removeChild(ea)}H.apply(this,arguments);7!==document.documentMode&&8!==document.documentMode&&
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,u+t/2);c.end();c.stroke()};mxCellRenderer.registerShape("sortShape",la);mxUtils.extend(oa,mxEllipse);oa.prototype.paintVertexShape=function(c,m,u,n,t){c.begin();c.moveTo(m,u);c.lineTo(m+n,u);c.lineTo(m+n/2,u+t/2);c.close();c.fillAndStroke();c.begin();c.moveTo(m,u+t);c.lineTo(m+n,u+t);c.lineTo(m+n/2,u+t/2);c.close();c.fillAndStroke()};mxCellRenderer.registerShape("collate",oa);mxUtils.extend(xa,mxEllipse);xa.prototype.paintVertexShape=function(c,m,u,n,t){var C=c.state.strokeWidth/2,D=10+2*C,ha=u+
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
null!=da&&(this.isCustomLink(da)?this.customLinkClicked(da):this.openLink(da)))};this.tooltipHandler.getStateForEvent=function(S){return S.sourceState};var ja=this.tooltipHandler.show;this.tooltipHandler.show=function(){ja.apply(this,arguments);if(null!=this.div)for(var S=this.div.getElementsByTagName("a"),da=0;da<S.length;da++)null!=S[da].getAttribute("href")&&null==S[da].getAttribute("target")&&S[da].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(S){return S.sourceState};
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
qa);A.editor.addListener("resetGraphView",qa);A.editor.addListener("pageSelected",qa);A.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(ra,pa){qa(ra,pa,pa.getProperty("factor"))}))})(aa);var Y=A.setGraphEnabled;A.setGraphEnabled=function(){Y.apply(this,arguments);null!=this.tabContainer&&(aa.style.visibility=this.tabContainer.style.visibility,this.diagramContainer.style.bottom="0"!=urlParams.pages&&"hidden"!=this.tabContainer.style.visibility?this.tabContainerHeight+"px":"0px")}}z.appendChild(J);
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
mxVertexHandler.prototype.isRotationHandleVisible=function(){return ba.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):this.bounds};var S=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=
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(d,f,k,v,z){var A=document.createElement("div");A.style.whiteSpace="nowrap";var H=this.editor.graph;if(null!=f){var J=document.createElement("h3");mxUtils.write(J,f);J.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";A.appendChild(J)}var O=this.addCheckbox(A,mxResources.get("fit"),!0),G=this.addCheckbox(A,mxResources.get("shadow"),H.shadowVisible&&v,!v),ja=this.addCheckbox(A,k),fa=this.addCheckbox(A,mxResources.get("lightbox"),!0),ca=this.addEditButton(A,fa),ia= ca.getEditInput(),ma=1<H.model.getChildCount(H.model.getRoot()),ba=this.addCheckbox(A,mxResources.get("layers"),ma,!ma);ba.style.marginLeft=ia.style.marginLeft;ba.style.marginBottom="12px";ba.style.marginTop="8px";mxEvent.addListener(fa,"change",function(){fa.checked?(ma&&ba.removeAttribute("disabled"),ia.removeAttribute("disabled")):(ba.setAttribute("disabled","disabled"),ia.setAttribute("disabled","disabled"));ia.checked&&fa.checked?ca.getEditSelect().removeAttribute("disabled"):ca.getEditSelect().setAttribute("disabled", "disabled")});f=new CustomDialog(this,A,mxUtils.bind(this,function(){d(O.checked,G.checked,ja.checked,fa.checked,ca.getLink(),ba.checked)}),null,mxResources.get("embed"),z);this.showDialog(f.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(d,f,k,v,z,A,H,J){function O(ia){var ma=" ",ba="";v&&(ma=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
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
la&&Math.abs(this.scrollTop-oa.container.scrollTop)<la&&Math.abs(this.startX-va.getGraphX())<la&&Math.abs(this.startY-va.getGraphY())<la&&Q(va.getEvent()));this.clear()},activate:function(sa){this.currentLink=oa.getAbsoluteUrl(oa.getLinkForCell(sa.cell));null!=this.currentLink&&(this.currentTarget=oa.getLinkTargetForCell(sa.cell),oa.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(sa))},clear:function(){null!=oa.container&&(oa.container.style.cursor=ea);this.currentLink=
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(d,f){f=null!=f?f:this.resampleThreshold;return d>f};EditorUi.prototype.resizeImage=function(d,f,k,v,z,A,H){z=null!=z?z:this.maxImageSize;var J=Math.max(1,d.width),O=Math.max(1,d.height);if(v&&this.isResampleImageSize(null!=H?H:f.length,A))try{var G=Math.max(J/z,O/z);if(1<G){var ja=Math.round(J/G),fa=Math.round(O/G),ca=document.createElement("canvas");ca.width=ja;ca.height=fa;ca.getContext("2d").drawImage(d,0,0,ja,fa);var ia=ca.toDataURL();if(ia.length<f.length){var ma=document.createElement("canvas"); 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
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!=
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.getCenterY();c=new mxPoint(ua,c);n&&(u.x<D||u.x>D+I?c.y=u.y:c.x=u.x);return mxUtils.getPerimeterPoint(ha,c,u)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(c,m,u,n){var t="0"!=mxUtils.getValue(m.style,"fixedSize","0"),C=t?O.prototype.fixedSize:O.prototype.size;null!=m&&(C=mxUtils.getValue(m.style,"size",C));t&&(C*=m.view.scale);var D=c.x,ha=c.y,I=c.width,ua=c.height;m=null!=m?mxUtils.getValue(m.style,mxConstants.STYLE_DIRECTION, mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;m==mxConstants.DIRECTION_EAST?(t=t?Math.max(0,Math.min(.5*I,C)):I*Math.max(0,Math.min(1,C)),ha=[new mxPoint(D+t,ha),new mxPoint(D+I-t,ha),new mxPoint(D+I,ha+ua),new mxPoint(D,ha+ua),new mxPoint(D+t,ha)]):m==mxConstants.DIRECTION_WEST?(t=t?Math.max(0,Math.min(I,C)):I*Math.max(0,Math.min(1,C)),ha=[new mxPoint(D,ha),new mxPoint(D+I,ha),new mxPoint(D+I-t,ha+ua),new mxPoint(D+t,ha+ua),new mxPoint(D,ha)]):m==mxConstants.DIRECTION_NORTH?(t=t?Math.max(0, Math.min(ua,C)):ua*Math.max(0,Math.min(1,C)),ha=[new mxPoint(D,ha+t),new mxPoint(D+I,ha),new mxPoint(D+I,ha+ua),new mxPoint(D,ha+ua-t),new mxPoint(D,ha+t)]):(t=t?Math.max(0,Math.min(ua,C)):ua*Math.max(0,Math.min(1,C)),ha=[new mxPoint(D,ha),new mxPoint(D+I,ha+t),new mxPoint(D+I,ha+ua-t),new mxPoint(D,ha+ua),new mxPoint(D,ha)]);ua=c.getCenterX();c=c.getCenterY();c=new mxPoint(ua,c);n&&(u.x<D||u.x>D+I?c.y=u.y:c.x=u.x);return mxUtils.getPerimeterPoint(ha,c,u)};mxStyleRegistry.putValue("trapezoidPerimeter",
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.position2)))),ha=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,t-u),new mxPoint(Math.min(n,C+ha),t-u),new mxPoint(D,t),new mxPoint(Math.max(0,C),t-u),new mxPoint(0,t-u)],this.isRounded,m,!0,[4])};mxCellRenderer.registerShape("callout",ma);mxUtils.extend(ba,mxActor);ba.prototype.size=.2;ba.prototype.fixedSize=20;ba.prototype.isRoundable=function(){return!0};ba.prototype.redrawPath=function(c,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.synchronizeFile(g,p)}))};DrawioFile.prototype.getErrorMessage=function(b){var e=null!=b?null!=b.error?b.error.message:b.message:null;null==e&&null!=b&&b.code==App.ERROR_TIMEOUT?e=mxResources.get("timeout"):"0"==e&&(e=mxResources.get("noResponse"));return e};DrawioFile.prototype.isOverdue=function(){return null!=this.ageStart&&Date.now()-this.ageStart.getTime()>=this.ui.warnInterval};
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
mxStencilRegistry.parseStencilSet=function(b,e,g){if("stencils"==b.nodeName)for(var p=b.firstChild;null!=p;)"shapes"==p.nodeName&&mxStencilRegistry.parseStencilSet(p,e,g),p=p.nextSibling;else{g=null!=g?g:!0;p=b.firstChild;var y="";b=b.getAttribute("name");for(null!=b&&(y=b+".");null!=p;){if(p.nodeType==mxConstants.NODETYPE_ELEMENT&&(b=p.getAttribute("name"),null!=b)){y=y.toLowerCase();var q=b.replace(/ /g,"_");g&&mxStencilRegistry.addStencil(y+q.toLowerCase(),new mxStencil(p));if(null!=e){var E=p.getAttribute("w"), M=p.getAttribute("h");E=null==E?80:parseInt(E,10);M=null==M?80:parseInt(M,10);e(y,q,b,E,M)}}p=p.nextSibling}}};
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); K=!this.graph.model.isEdge(F)&&!this.graph.isSiblingSelected(E)&&(null!=K&&K.relative||!this.graph.isContainer(F)||this.graph.isPart(E))}else if(K=q.apply(this,arguments),this.graph.isTableCell(E)||this.graph.isTableRow(E))K=F,this.graph.isTable(K)||(K=this.graph.model.getParent(K)),K=!this.graph.selectionCellsHandler.isHandled(K)||this.graph.isCellSelected(K)&&this.graph.isToggleEvent(T.getEvent())||this.graph.isCellSelected(E)&&!this.graph.isToggleEvent(T.getEvent())||this.graph.isTableCell(E)&& this.graph.isCellSelected(F);return K};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(E){E=E.getCell();for(var M=this.graph.getModel(),T=M.getParent(E),F=this.graph.view.getState(T),K=this.graph.isCellSelected(E);null!=F&&(M.isVertex(T)||M.isEdge(T));){var R=this.graph.isCellSelected(T);K=K||R;if(R||!K&&(this.graph.isTableCell(E)||this.graph.isTableRow(E)))E=T;T=M.getParent(T)}return E}})();EditorUi=function(b,e,g){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=e||document.body;var p=this,y=this.editor.graph;y.lightbox=g;var q=y.getGraphBounds;y.getGraphBounds=function(){var P=q.apply(this,arguments),V=this.backgroundImage;if(null!=V&&null!=V.width&&null!=V.height){var l=this.view.translate,B=this.view.scale;P=mxRectangle.fromRectangle(P);P.add(new mxRectangle((l.x+V.x)*B,(l.y+V.y)*B,V.width*B,V.height*B))}return P};y.useCssTransforms&&(this.lazyZoomDelay=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
arguments);var Q=this.graph.getEditingValue(x.cell,L);"1"==mxUtils.getValue(x.style,"nl2Br","1")&&(Q=Q.replace(/\n/g,"<br/>"));return Q=Graph.sanitizeHtml(Q,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(x){if("0"==mxUtils.getValue(x.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var L=Graph.sanitizeHtml(this.textarea.innerHTML,!0);return L="1"==mxUtils.getValue(x.style,"nl2Br","1")?L.replace(/\r\n/g, "<br/>").replace(/\n/g,"<br/>"):L.replace(/\r\n/g,"").replace(/\n/g,"")};var O=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(x){this.codeViewMode&&this.toggleViewMode();O.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(x){}};var G=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(x,L){this.graph.getModel().beginUpdate();try{G.apply(this,arguments),""==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
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,p,y,q){DrawioFile.call(this,b,e);this.title=g;this.mode=p?null:App.MODE_DEVICE;this.fileHandle=y;this.desc=q};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title};
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);this.lastX=c;this.lastY=m};fa.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo};var kb=mxShape.prototype.beforePaint;mxShape.prototype.beforePaint=function(c){kb.apply(this,arguments);null==c.handJiggle&&(c.handJiggle=this.createHandJiggle(c))};var Pa=mxShape.prototype.afterPaint;
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.createWipeAnimations=function(b,e){for(var g=[],p=0;p<b.length;p++){var y=this.view.getState(b[p]);null!=y&&null!=y.shape&&(this.model.isEdge(y.cell)&&null!=y.absolutePoints&&1<y.absolutePoints.length?g.push(this.createEdgeWipeAnimation(y,e)):this.model.isVertex(y.cell)&&null!=y.shape.bounds&&g.push(this.createVertexWipeAnimation(y,e)))}return 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.prototype.isViewer=function(){return!1};Graph.prototype.labelLinkClicked=function(b,e,g){var p=e.getAttribute("href");p!=Graph.sanitizeLink(p)&&Graph.sanitizeNode(e);if(null!=p&&!this.isCustomLink(p)&&(mxEvent.isLeftMouseButton(g)&&!mxEvent.isPopupTrigger(g)||mxEvent.isTouchEvent(g))){if(!this.isEnabled()||this.isCellLocked(b.cell))b=this.isBlankLink(p)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(p),b);mxEvent.consume(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
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
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.editor.resolvedFontCss&&this.editor.addFontCss(d,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(d,k),f(d)}catch(v){f(d)}}))}catch(k){f(d)}}))};EditorUi.prototype.exportImage=function(d,f,k,v,z,A,H,J,O,G,ja,fa,ca){O=null!=O?O:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var ia=this.editor.graph.isSelectionEmpty();k=null!=k?k:ia;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this, function(ma){this.spinner.stop();try{this.saveCanvas(ma,z?this.getFileData(!0,null,null,null,k,J):null,O,null==this.pages||0==this.pages.length,ja)}catch(ba){this.handleError(ba)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(ma){this.spinner.stop();this.handleError(ma)}),null,k,d||1,f,v,null,null,A,H,G,fa,ca)}catch(ma){this.spinner.stop(),this.handleError(ma)}}};EditorUi.prototype.isCorsEnabledForUrl=function(d){return this.editor.isCorsEnabledForUrl(d)};EditorUi.prototype.importXml=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
m,u,n,t){var C=c.view;n=null!=n&&0<n.length?n[0]:null;var D=c.absolutePoints,ha=D[0];D=D[D.length-1];null!=n&&(n=C.transformControlPoint(c,n));null==ha&&null!=m&&(ha=new mxPoint(m.getCenterX(),m.getCenterY()));null==D&&null!=u&&(D=new mxPoint(u.getCenterX(),u.getCenterY()));var I=Bb.x,ua=Bb.y,na=vb.x,Za=vb.y,qb="horizontal"==mxUtils.getValue(c.style,"elbow","horizontal");if(null!=D&&null!=ha){c=function(Ga,Ja,Ia){Ga-=fb.x;var Ha=Ja-fb.y;Ja=(Za*Ga-na*Ha)/(I*Za-ua*na);Ga=(ua*Ga-I*Ha)/(ua*na-I*Za);qb? (Ia&&(fb=new mxPoint(fb.x+I*Ja,fb.y+ua*Ja),t.push(fb)),fb=new mxPoint(fb.x+na*Ga,fb.y+Za*Ga)):(Ia&&(fb=new mxPoint(fb.x+na*Ga,fb.y+Za*Ga),t.push(fb)),fb=new mxPoint(fb.x+I*Ja,fb.y+ua*Ja));t.push(fb)};var fb=ha;null==n&&(n=new mxPoint(ha.x+(D.x-ha.x)/2,ha.y+(D.y-ha.y)/2));c(n.x,n.y,!0);c(D.x,D.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var Cb=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(c,m){if(m==mxEdgeStyle.IsometricConnector){var u=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
C,D,m+n/2,u+t/2);s=this.scale;m=this.bounds.x/s;u=this.bounds.y/s;n=this.bounds.width/s;t=this.bounds.height/s;this.paintTableForeground(c,m,u,n,t)}};e.prototype.paintTableForeground=function(c,m,u,n,t){n=this.state.view.graph.getTableLines(this.state.cell,"0"!=mxUtils.getValue(this.state.style,"rowLines","1"),"0"!=mxUtils.getValue(this.state.style,"columnLines","1"));for(t=0;t<n.length;t++)b.prototype.paintTableLine(c,n[t],m,u)};e.prototype.configurePointerEvents=function(c){0==this.getTitleSize()? c.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",e);mxUtils.extend(g,e);g.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",g);mxUtils.extend(p,mxCylinder);p.prototype.size=20;p.prototype.darkOpacity=0;p.prototype.darkOpacity2=0;p.prototype.paintVertexShape=function(c,m,u,n,t){var C=Math.max(0,Math.min(n,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),D=Math.max(-1,Math.min(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
f&&(H.responseType="blob");H.onload=function(J){if(200<=this.status&&300>this.status)if("txt"==f)k(this.response);else{var O=new FileReader;O.readAsDataURL(this.response);O.onloadend=function(G){var ja=new Image;ja.onload=function(){try{var fa=ja.width,ca=ja.height;if(0==fa&&0==ca){var ia=O.result,ma=ia.indexOf(","),ba=decodeURIComponent(escape(atob(ia.substring(ma+1)))),S=mxUtils.parseXml(ba).getElementsByTagName("svg");0<S.length&&(fa=parseFloat(S[0].getAttribute("width")),ca=parseFloat(S[0].getAttribute("height")))}k(O.result, fa,ca)}catch(da){v(da)}};ja.src=O.result};O.onerror=function(G){v(G)}}else v(J)};H.onerror=function(J){v(J)};H.send()};EditorUi.prototype.insertAsPreText=function(d,f,k){var v=this.editor.graph,z=null;v.getModel().beginUpdate();try{z=v.insertVertex(null,null,"<pre>"+d+"</pre>",f,k,1,1,"text;html=1;align=left;verticalAlign=top;"),v.updateCellSize(z,!0)}finally{v.getModel().endUpdate()}return z};EditorUi.prototype.insertTextAt=function(d,f,k,v,z,A,H,J){A=null!=A?A:!0;H=null!=H?H:!0;if(null!=d)if(Graph.fileSupport&&
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.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,p,y,q){DrawioFile.call(this,b,e);this.title=g;this.mode=p?null:App.MODE_DEVICE;this.fileHandle=y;this.desc=q};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title};
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
TableLayout.prototype.getRowLayout=function(b,e){var g=this.graph.model.getChildCells(b,!0),p=this.graph.getActualStartSize(b,!0);b=this.getSize(g,!0);e=e-p.x-p.width;var y=[];p=p.x;for(var q=0;q<g.length;q++){var E=this.graph.getCellGeometry(g[q]);null!=E&&(p+=(null!=E.alternateBounds?E.alternateBounds.width:E.width)*e/b,y.push(Math.round(p)))}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
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
z=v.indexOf(",");0<z&&(z=M.getIndexById(v.substring(z+1)),0<=z&&(k=M.getImageForGraphModel(Editor.parseDiagramNode(M.diagrams[z])),k.originalSrc=v))}W.apply(this,arguments)};var d=this.graph.getGraphBounds;this.graph.getGraphBounds=function(k){var v=d.apply(this,arguments);k=this.backgroundImage;if(null!=k){var z=this.view.translate,A=this.view.scale;v=mxRectangle.fromRectangle(v);v.add(new mxRectangle((z.x+k.x)*A,(z.y+k.y)*A,k.width*A,k.height*A))}return v};this.addListener("xmlNodeChanged",F);F();
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
(m=-1*(m+1));return new mxPoint(c.getCenterX()+m,Math.min(c.y+c.height,Math.max(c.y+n,u.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(c,m,u,n){n=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(c,m,u,n){n=parseFloat(m.style[mxConstants.STYLE_STROKEWIDTH]||1)*m.view.scale/2-1;null!=m.style.backboneSize&& (n+=parseFloat(m.style.backboneSize)*m.view.scale/2-1);if("south"==m.style[mxConstants.STYLE_DIRECTION]||"north"==m.style[mxConstants.STYLE_DIRECTION])return u.x<c.getCenterX()&&(n=-1*(n+1)),new mxPoint(c.getCenterX()+n,Math.min(c.y+c.height,Math.max(c.y,u.y)));u.y<c.getCenterY()&&(n=-1*(n+1));return new mxPoint(Math.min(c.x+c.width,Math.max(c.x,u.x)),c.getCenterY()+n)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(c,m,u,n){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(c,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
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"==
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
if(0<T.length){if(null!=this.pageId)for(var F=0;F<T.length;F++)if(this.pageId==T[F].getAttribute("id")){this.currentPage=F;break}var K=this.graph.getGlobalVariable;M=this;this.graph.getGlobalVariable=function(k){var v=T[M.currentPage];return"page"==k?v.getAttribute("name")||"Page-"+(M.currentPage+1):"pagenumber"==k?M.currentPage+1:"pagecount"==k?T.length:K.apply(this,arguments)}}}this.diagrams=[];var R=null;this.selectPage=function(k){this.handlingResize||(this.currentPage=mxUtils.mod(k,this.diagrams.length), this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage])))};this.selectPageById=function(k){k=this.getIndexById(k);var v=0<=k;v&&this.selectPage(k);return v};F=mxUtils.bind(this,function(){if(null==this.xmlNode||"mxfile"!=this.xmlNode.nodeName)this.diagrams=[];this.xmlNode!=R&&(this.diagrams=this.xmlNode.getElementsByTagName("diagram"),R=this.xmlNode)});var W=this.graph.setBackgroundImage;this.graph.setBackgroundImage=function(k){if(null!=k&&Graph.isPageLink(k.src)){var v=k.src,
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.updateFile=function(b,e,g,p){null!=g&&g()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():this.getLatestVersion(mxUtils.bind(this,function(y){try{null!=g&&g()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[y]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():null!=y?this.mergeFile(y,b,e,p):this.reloadFile(b,e))}catch(q){null!= e&&e(q)}}),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
!0;Editor.enableRealtime=!0;Editor.compressXml=!0;Editor.defaultCompressed=!1;Editor.oneDriveInlinePicker=null!=window.urlParams&&"0"==window.urlParams.inlinePicker?!1:!0;Editor.globalVars=null;Editor.config=null;Editor.configVersion=null;Editor.defaultBorder=5;Editor.commonProperties=[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(l){l.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(l,B){return"1"==mxUtils.getValue(l.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
urlParams.page=M.currentPage;F=null;this.graph.getModel().beginUpdate();try{urlParams.nav=0!=this.graphConfig.nav?"1":"0",this.editor.setGraphXml(this.xmlNode),this.graph.view.scale=this.graphConfig.zoom||1,F=this.setLayersVisible(),this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8)}finally{this.graph.getModel().endUpdate()}this.responsive||(this.graph.panningHandler.isForcePanningEvent=function(k){return!mxEvent.isPopupTrigger(k.getEvent())&&"auto"==this.graph.container.style.overflow}, this.graph.panningHandler.useLeftButtonForPanning=!0,this.graph.panningHandler.ignoreCell=!0,this.graph.panningHandler.usePopupTrigger=!1,this.graph.panningHandler.pinchEnabled=!1);this.graph.setPanning(!1);null!=this.graphConfig.toolbar?this.addToolbar():null!=this.graphConfig.title&&this.showTitleAsTooltip&&b.setAttribute("title",this.graphConfig.title);this.responsive||this.addSizeHandler();!this.showLayers(this.graph)||this.forceCenter||this.layersEnabled&&!this.autoCrop||this.crop();this.addClickHandler(this.graph); this.graph.setTooltips(0!=this.graphConfig.tooltips);this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};null!=F&&this.setLayersVisible(F);this.graph.customLinkClicked=function(k){try{if(Graph.isPageLink(k)){var v=k.indexOf(",");M.selectPageById(k.substring(v+1))||alert(mxResources.get("pageNotFound")||"Page not found")}else this.handleCustomLink(k)}catch(z){alert(z.message)}return!0};var f=this.graph.foldTreeCell;this.graph.foldTreeCell=mxUtils.bind(this, function(){this.treeCellFolded=!0;return f.apply(this.graph,arguments)});this.fireEvent(new mxEventObject("render"))});g=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(this.checkVisibleState&&0==b.offsetWidth&&"undefined"!==typeof g){var y=this.getObservableParent(b),q=new g(mxUtils.bind(this,function(E){0<b.offsetWidth&&(q.disconnect(),p())}));q.observe(y,{attributes:!0})}else 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
"px";Ma.style.width=Da.offsetWidth+"px";Ma.style.height=Da.offsetHeight-(x?4:0)+"px";Ma.style.zIndex=5}function aa(Da,Ma,x){var L=document.createElement("div");L.style.width="32px";L.style.height="4px";L.style.margin="2px";L.style.border="1px solid black";L.style.background=Ma&&"none"!=Ma?Ma:"url('"+Dialog.prototype.noColorImage+"')";btn=mxUtils.button("",mxUtils.bind(pa,function(Q){this.editorUi.pickColor(Ma,function(X){L.style.background="none"==X?"url('"+Dialog.prototype.noColorImage+"')":X;Z(Da, X,x)});mxEvent.consume(Q)}));btn.style.height="12px";btn.style.width="40px";btn.className="geColorBtn";btn.appendChild(L);return btn}function Y(Da,Ma,x,L,Q,X,ea){null!=Ma&&(Ma=Ma.split(","),Ca.push({name:Da,values:Ma,type:x,defVal:L,countProperty:Q,parentRow:X,isDeletable:!0,flipBkg:ea}));btn=mxUtils.button("+",mxUtils.bind(pa,function(la){for(var oa=X,xa=0;null!=oa.nextSibling;)if(oa.nextSibling.getAttribute("data-pName")==Da)oa=oa.nextSibling,xa++;else break;var sa={type:x,parentRow:X,index:xa,
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);return y};Dialog.prototype.getDocumentSize=function(){return new mxRectangle(0,0,Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0))};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxUtils.extend(Da,mxActor);Da.prototype.redrawPath=function(c,m,u,n,t){c.moveTo(0,0);c.quadTo(n,0,n,t/2);c.quadTo(n,t,0,t);c.close();c.end()};mxCellRenderer.registerShape("or",Da);mxUtils.extend(Ma,mxActor);Ma.prototype.redrawPath=function(c,m,u,n,t){c.moveTo(0,0);c.quadTo(n,0,n,t/2);c.quadTo(n,t,0,t);c.quadTo(n/2,t/2,0,0);c.close();c.end()};mxCellRenderer.registerShape("xor",Ma);mxUtils.extend(x,mxActor);x.prototype.size=20;x.prototype.isRoundable=function(){return!0};x.prototype.redrawPath=function(c,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
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
mxConstants.NONE,1,!0);Ra.isDashed=xa.isDashed;Ra.svgStrokeTolerance++;$a=new mxHandle($a,"col-resize",null,Ra);$a.tableHandle=!0;var kb=0;$a.shape.node.parentNode.insertBefore($a.shape.node,$a.shape.node.parentNode.firstChild);$a.redraw=function(){if(null!=this.shape){this.shape.stroke=0==kb?mxConstants.NONE:xa.stroke;if(this.shape.constructor==V)this.shape.line=L(ab[bb],kb,0),this.shape.updateBoundsFromLine();else{var eb=X.getActualStartSize(oa.cell,!0);this.shape.bounds.width=1;this.shape.bounds.x= this.state.x+(db.width+kb)*la;this.shape.bounds.y=oa.y+(bb==Ua.length-1?0:eb.y*la);this.shape.bounds.height=oa.height-(bb==Ua.length-1?0:(eb.height+eb.y)*la)}this.shape.redraw()}};var Pa=!1;$a.setPosition=function(eb,jb,ib){kb=Math.max(Graph.minTableColumnWidth-db.width,jb.x-eb.x-db.width);Pa=mxEvent.isShiftDown(ib.getEvent());null==lb||Pa||(kb=Math.min(kb,lb.width-Graph.minTableColumnWidth))};$a.execute=function(eb){if(0!=kb)X.setTableColumnWidth(this.state.cell,kb,Pa);else if(!Q.blockDelayedSelection){var jb=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
null,null,null,!0,null,null,z,k,v);this.showDialog(d.container,620,460,!0,!1);d.init()};EditorUi.prototype.showBackgroundImageDialog=function(d,f,k,v){d=null!=d?d:mxUtils.bind(this,function(z,A,H,J){A||(z=new ChangePageSetup(this,v?H:null,z),z.ignoreColor=!v,null!=J&&v&&(z.shadowVisible=J),this.editor.graph.model.execute(z))});d=new BackgroundImageDialog(this,d,f,k,v);this.showDialog(d.container,400,v?240:220,!0,!0);d.init()};EditorUi.prototype.showLibraryDialog=function(d,f,k,v,z){d=new LibraryDialog(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.graph.setShadowVisible("1"==l.getAttribute("shadow"),!1);if(B=l.getAttribute("extFonts"))try{for(B=B.split("|").map(function(U){U=U.split("^");return{name:U[0],url:U[1]}}),N=0;N<B.length;N++)this.graph.addExtFont(B[N].name,B[N].url)}catch(U){console.log("ExtFonts format error: "+U.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};
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(Z){mxEvent.isConsumed(Z)||((mxEvent.isControlDown(Z)||mxClient.IS_MAC&&mxEvent.isMetaDown(Z))&&13==Z.keyCode?(N.click(),mxEvent.consume(Z)):27==Z.keyCode&&(B.click(),mxEvent.consume(Z)))}));N.focus();N.className="geCommentEditBtn gePrimaryBtn";l.appendChild(N);ia.insertBefore(l,da);P.style.display="none";da.style.display="none";V.focus()}function T(ca,ia){ia.innerText="";ca=new Date(ca.modifiedDate);var ma=b.timeSince(ca);null==ma&&(ma=mxResources.get("lessThanAMinute")); mxUtils.write(ia,mxResources.get("timeAgo",[ma],"{1} ago"));ia.setAttribute("title",ca.toLocaleDateString()+" "+ca.toLocaleTimeString())}function F(ca){var ia=document.createElement("img");ia.className="geCommentBusyImg";ia.src=IMAGE_PATH+"/spin.gif";ca.appendChild(ia);ca.busyImg=ia}function K(ca){ca.style.border="1px solid red";ca.removeChild(ca.busyImg)}function R(ca){ca.style.border="";ca.removeChild(ca.busyImg)}function W(ca,ia,ma,ba,S){function da(aa,Y,ka){var qa=document.createElement("li");
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.currentTranslate,T=this.graph.currentScale;E=new mxRectangle((E.x+M.x)*T,(E.y+M.y)*T,E.width*T,E.height*T)}return E};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var e=mxGraphView.prototype.validate;mxGraphView.prototype.validate=function(E){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.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
var q=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var x=q.apply(this,arguments);x.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return x};mxConnectionHandler.prototype.updatePreview=function(x){};var E=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var x=E.apply(this,arguments),L=x.getCell;x.getCell=mxUtils.bind(this,function(Q){var X=L.apply(this,arguments);this.error=null;return 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),!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, 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(0,0),!1,null,.5*(m+n),u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,u-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u-n));c.push(new mxConnectionConstraint(new mxPoint(0, 0),!1,null,0,.5*(u-n)));return c};d.prototype.getConstraints=function(c,m,u){c=[];m=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,m));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
mxUtils.getValue(this.style,"line")?(c.moveTo(m+n/2,u),c.lineTo(m+n/2,u+t)):(c.moveTo(m,u+t/2),c.lineTo(m+n,u+t/2));c.end();c.stroke()};mxCellRenderer.registerShape("lineEllipse",va);mxUtils.extend(Fa,mxActor);Fa.prototype.redrawPath=function(c,m,u,n,t){m=Math.min(n,t/2);c.moveTo(0,0);c.lineTo(n-m,0);c.quadTo(n,0,n,t/2);c.quadTo(n,t,n-m,t);c.lineTo(0,t);c.close();c.end()};mxCellRenderer.registerShape("delay",Fa);mxUtils.extend(Ua,mxActor);Ua.prototype.size=.2;Ua.prototype.redrawPath=function(c,m, u,n,t){m=Math.min(t,n);var C=Math.max(0,Math.min(m,m*parseFloat(mxUtils.getValue(this.style,"size",this.size))));m=(t-C)/2;u=m+C;var D=(n-C)/2;C=D+C;c.moveTo(0,m);c.lineTo(D,m);c.lineTo(D,0);c.lineTo(C,0);c.lineTo(C,m);c.lineTo(n,m);c.lineTo(n,u);c.lineTo(C,u);c.lineTo(C,t);c.lineTo(D,t);c.lineTo(D,u);c.lineTo(0,u);c.close();c.end()};mxCellRenderer.registerShape("cross",Ua);mxUtils.extend(ab,mxActor);ab.prototype.size=.25;ab.prototype.redrawPath=function(c,m,u,n,t){m=Math.min(n,t/2);u=Math.min(n-
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(Va){null!=U&&U(Va)};ra&&this.graph.addSvgShadow(Aa);this.graph.mathEnabled&&this.addMathCss(Aa);var za=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(Aa,this.resolvedFontCss),Ea.src=Editor.createSvgDataUri(mxUtils.getXml(Aa))}catch(Va){null!=U&&U(Va)}});this.embedExtFonts(mxUtils.bind(this,function(Va){try{null!=Va&&this.addFontCss(Aa,Va),this.loadFonts(za)}catch(La){null!=U&&U(La)}}))}catch(Va){null!=U&&U(Va)}}),N,pa)}catch(Aa){null!=U&&U(Aa)}};Editor.crcTable=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
DrawioFile.prototype.patch=function(b,e,g,p){if(null!=b){var y=this.ui.editor.undoManager,q=y.history.slice(),E=y.indexOfNextAdd,M=this.ui.editor.graph;M.container.style.visibility="hidden";var T=this.changeListenerEnabled;this.changeListenerEnabled=g;var F=M.foldingEnabled,K=M.mathEnabled,R=M.cellRenderer.redraw;M.cellRenderer.redraw=function(W){W.view.graph.isEditing(W.cell)&&(W.view.graph.scrollCellToVisible(W.cell),W.view.graph.cellEditor.resize());R.apply(this,arguments)};M.model.beginUpdate();
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.position2)))),ha=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,t-u),new mxPoint(Math.min(n,C+ha),t-u),new mxPoint(D,t),new mxPoint(Math.max(0,C),t-u),new mxPoint(0,t-u)],this.isRounded,m,!0,[4])};mxCellRenderer.registerShape("callout",ma);mxUtils.extend(ba,mxActor);ba.prototype.size=.2;ba.prototype.fixedSize=20;ba.prototype.isRoundable=function(){return!0};ba.prototype.redrawPath=function(c, m,u,n,t){m="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n-m,0),new mxPoint(n,t/2),new mxPoint(n-m,t),new mxPoint(0,t),new mxPoint(m,t/2)],this.isRounded,u,!0);c.end()};mxCellRenderer.registerShape("step",
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
var WrapperWindow=function(b,e,g,p,y,q,E){var M=b.createSidebarContainer();E(M);this.window=new mxWindow(e,M,g,p,y,q,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);b.installResizeHandler(this,!0);mxClient.IS_SF&&(this.window.div.onselectstart=mxUtils.bind(this,function(T){null==T&&(T=window.event);return null!=T&&b.isSelectionAllowed(T)}))};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
try{this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified()),0==this.ui.pages.length&&this.ui.pages.push(this.ui.createPage()),0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0)}finally{M.container.style.visibility="";M.model.endUpdate();M.cellRenderer.redraw=R;this.changeListenerEnabled=T;g||(y.history=q,y.indexOfNextAdd=E,y.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)K!=M.mathEnabled? (this.ui.editor.updateGraphComponents(),M.refresh()):(F!=M.foldingEnabled?M.view.revalidate():M.view.validate(),M.sizeDidChange());null!=this.sync&&this.isRealtime()&&!p&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages));this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",[this],"patches",b,"resolver",e,"undoable",g)}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
0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};ma.prototype.isRoundable=function(){return!0};ma.prototype.redrawPath=function(c,m,u,n,t){m=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;u=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var C=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),D=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",
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.scale=x;L="data:image/svg+xml;base64,"+L;var Q=wa.gridSize*Ma.gridSteps*ka,X=wa.getGraphBounds(),ea=Ma.translate.x*x,la=Ma.translate.y*x,oa=ea+(X.x-ea)/x-Ca,xa=la+(X.y-la)/x-Ca,sa=new Image;sa.onload=function(){try{for(var va=-Math.round(Q-mxUtils.mod((ea-oa)*ka,Q)),Fa=-Math.round(Q-mxUtils.mod((la-xa)*ka,Q));va<Ka;va+=Q)for(var Ua=Fa;Ua<cb;Ua+=Q)Da.drawImage(sa,va/ka,Ua/ka);Va()}catch(ab){null!=U&&U(ab)}};sa.onerror=function(va){null!=U&&U(va)};sa.src=L}else Va()}catch(va){null!=U&&U(va)}});Ea.onerror=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
(null!=aa||0<=mxUtils.indexOf(Y,mxUtils.hex2rgb(ka.fill)))?"solid":qa.fillStyle);ka.fillStyle=Y;return ka};l.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};l.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};l.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var aa=2;aa<arguments.length;aa+=2)this.lastX=arguments[aa-1],this.lastY=arguments[aa],this.path.push(this.canvas.format(this.lastX)), this.path.push(this.canvas.format(this.lastY))};l.prototype.lineTo=function(aa,Y){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,aa,Y),this.lastX=aa,this.lastY=Y)};l.prototype.moveTo=function(aa,Y){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,aa,Y),this.lastX=aa,this.lastY=Y,this.firstX=aa,this.firstY=Y)};l.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
ColorDialog.addRecentColor=function(l,B){M.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var T=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){T.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(l,B){var N=null;null!=l.editor.graph.getModel().getParent(B)?N=B.getId():null!=l.currentPage&&(N=l.currentPage.getId()); return N});if(null!=window.StyleFormatPanel){var F=Format.prototype.init;Format.prototype.init=function(){F.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var K=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?K.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(l){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||
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({message:mxResources.get("error")+" "+pa.getStatus()})},qa,this.timeout,function(){U&&null!=N&&N({code:App.ERROR_TIMEOUT,retry:ra})},ka)});ra()}catch(pa){null!=N&&N(pa)}};Editor.prototype.absoluteCssFonts=function(l){var B=null;if(null!=l){var N=l.split("url(");if(0<N.length){B=[N[0]];l=window.location.pathname;var Z=null!=l?l.lastIndexOf("/"):-1;0<=Z&&(l=l.substring(0,Z+1));Z=document.getElementsByTagName("base");var U=null;null!=Z&&0<Z.length&&(U=Z[0].getAttribute("href"));for(var aa=1;aa<N.length;aa++)if(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
arguments)||0>mxUtils.indexOf(A,jb)};this.executeLayout(function(){lb.execute(O.getDefaultParent());ab()},!0,ra);ra=null}else if("organic"==ya||"auto"==ya&&sa.length>A.length){O.view.validate();var Pa=new mxFastOrganicLayout(O);Pa.forceConstant=3*Y;Pa.disableEdgeStyle=!1;Pa.resetEdges=!1;var eb=Pa.isVertexIgnored;Pa.isVertexIgnored=function(jb){return eb.apply(this,arguments)||0>mxUtils.indexOf(A,jb)};this.executeLayout(function(){Pa.execute(O.getDefaultParent());ab()},!0,ra);ra=null}}this.hideDialog()}finally{O.model.endUpdate()}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
try{p.pasteXml(K,!0)}finally{q.getModel().endUpdate()}}else mxClipboard.paste(q)}),F=!0)}catch(K){}F||mxClipboard.paste(q)}},!1,"sprite-paste",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(F){function K(W){if(null!=W){for(var d=!0,f=0;f<W.length&&d;f++)d=d&&q.model.isEdge(W[f]);var k=q.view.translate;f=q.view.scale;var v=k.x,z=k.y;k=null;if(1==W.length&&d){var A=q.getCellGeometry(W[0]);null!=A&&(k=A.getTerminalPoint(!0))}k=null!=k?k:q.getBoundingBoxFromGeometry(W,d);null!=k&&(d=Math.round(q.snap(q.popupMenuHandler.triggerX/
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(d,f){f=f||"";d=atob(d);for(var k=d.length,v=Math.ceil(k/1024),z=Array(v),A=0;A<v;++A){for(var H=1024*A,J=Math.min(H+1024,k),O=Array(J-H),G=0;H<J;++G,++H)O[G]=d[H].charCodeAt(0);z[A]=new Uint8Array(O)}return new Blob(z,{type:f})};EditorUi.prototype.saveLocalFile=function(d,f,k,v,z,A,H,J){A=null!=A?A:!1;H=null!=H?H:"vsdx"!=z&&(!mxClient.IS_IOS||!navigator.standalone);z=this.getServiceCount(A);isLocalStorage&&z++;var O=4>=z?2:6<z?4:3;f=new CreateDialog(this,f,mxUtils.bind(this,function(G,ja){try{if("_blank"== ja)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(d,k,v);else if(null!=k&&"text/html"==k.substring(0,9)){var fa=new EmbedDialog(this,d);this.showDialog(fa.container,450,240,!0,!0);fa.init()}else{var ca=window.open("about:blank");null==ca?mxUtils.popup(d,!0):(ca.document.write("<pre>"+mxUtils.htmlEntities(d,!1)+"</pre>"),ca.document.close())}else ja==App.MODE_DEVICE||"download"==ja?this.doSaveLocalFile(d,G,k,v,null,J):null!=G&&0<G.length&&this.pickFolder(ja,mxUtils.bind(this,function(ia){try{this.exportFile(d, G,k,v,ja,ia)}catch(ma){this.handleError(ma)}}))}catch(ia){this.handleError(ia)}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,A,H,null,1<z,O,d,k,v);A=this.isServices(z)?z>O?390:280:160;this.showDialog(f.container,420,A,!0,!0);f.init()};EditorUi.prototype.openInNewWindow=function(d,f,k){var v=window.open("about:blank");null==v||null==v.document?mxUtils.popup(d,!0):("image/svg+xml"!=f||mxClient.IS_SVG?"image/svg+xml"!=f||k?(d=k?d:btoa(unescape(encodeURIComponent(d))),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
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, 0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(0,1),!1,null,m),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(1,1), !0),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(u-.5*c,1.5*c)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(u-.5*c,3.5*c))];u>5*c&&n.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,m));u>8*c&&n.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,m));u>15*c&&n.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,m));return n};x.prototype.constraints=mxRectangleShape.prototype.constraints;L.prototype.constraints=mxRectangleShape.prototype.constraints;
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.addUndoListener=function(){var b=this.editor.undoManager,e=mxUtils.bind(this,function(){this.updateActionStates()});b.addListener(mxEvent.ADD,e);b.addListener(mxEvent.UNDO,e);b.addListener(mxEvent.REDO,e);b.addListener(mxEvent.CLEAR,e);var g=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){g.apply(this,arguments);e()};var p=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(y,q){p.apply(this,arguments); e()};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
null,!0)}else this.graph.openLink(this.getEditBlankUrl(e)+"#R"+encodeURIComponent(b))};Editor.prototype.createGraph=function(b,e){b=new Graph(null,e,null,null,b);b.transparentBackground=!1;var g=b.isCssTransformsSupported,p=this;b.isCssTransformsSupported=function(){return g.apply(this,arguments)&&(!p.chromeless||!mxClient.IS_SF)};this.chromeless||(b.isBlankLink=function(y){return!this.isExternalProtocol(y)});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
mxConstants.LINE_ARCSIZE)/2;c.begin();this.addPoints(c,[new mxPoint(m+C,u),new mxPoint(m+n,u+D),new mxPoint(m+C,u+t),new mxPoint(m,u+D)],this.isRounded,ha,!0);c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Ba);mxUtils.extend(ya,mxDoubleEllipse);ya.prototype.outerStroke=!0;ya.prototype.paintVertexShape=function(c,m,u,n,t){var C=Math.min(4,Math.min(n/5,t/5));0<n&&0<t&&(c.ellipse(m+C,u+C,n-2*C,t-2*C),c.fillAndStroke());c.setShadow(!1); 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
Graph.prototype.getDataForCells=function(b){for(var e=[],g=0;g<b.length;g++){var p=null!=b[g].value?b[g].value.attributes:null,y={};y.id=b[g].id;if(null!=p)for(var q=0;q<p.length;q++)y[p[q].nodeName]=p[q].nodeValue;else y.label=this.convertValueToString(b[g]);e.push(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
X.setAttribute("label",x.value||"");null!=Q?X.setAttribute(L,Q):X.removeAttribute(L);this.model.setValue(x,X)};Graph.prototype.isTargetShape=function(x,L,Q){x=mxUtils.getValue(this.getCurrentCellStyle(x),mxConstants.STYLE_SHAPE,"");for(Q=0;Q<L.length;Q++){var X=mxUtils.getValue(this.getCurrentCellStyle(L[Q]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(X,x))return!0}return!1};var k=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(x,L,Q,X){if(mxEvent.isAltDown(L))return null; for(var ea=0;ea<x.length;ea++){var la=this.model.getParent(x[ea]);if(this.model.isEdge(la)&&0>mxUtils.indexOf(x,la))return null}la=k.apply(this,arguments);var oa=!0;for(ea=0;ea<x.length&&oa;ea++)oa=oa&&this.isTableRow(x[ea]);oa&&(this.isTableCell(la)&&(la=this.model.getParent(la)),this.isTableRow(la)&&(la=this.model.getParent(la)),this.isTable(la)||(la=null));return la};Graph.prototype.click=function(x){mxGraph.prototype.click.call(this,x);this.firstClickState=x.getState();this.firstClickSource=x.getSource()};
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
46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.styleElt=document.createElement("style");Editor.styleElt.type="text/css";Editor.styleElt.innerHTML=Editor.createMinimalCss();document.getElementsByTagName("head")[0].appendChild(Editor.styleElt);Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var y=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(W){y.apply(this, 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",
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(K){y.apply(this,arguments);this.graph.model.isEdge(K.cell)&&1!=K.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(K)};mxGraphView.prototype.updateLineJumps=function(K){var R=K.absolutePoints;if(Graph.lineJumpsEnabled){var W=null!=K.routedPoints,d=null;if(null!=R&&null!=this.validEdges&&"none"!==mxUtils.getValue(K.style,"jumpStyle","none")){var f=function(ia,ma,ba){var S=new mxPoint(ma,ba);S.type=ia;d.push(S);S=null!=K.routedPoints?K.routedPoints[d.length-1]:null;return null==S||S.type!= ia||S.x!=ma||S.y!=ba},k=.5*this.scale;W=!1;d=[];for(var v=0;v<R.length-1;v++){for(var z=R[v+1],A=R[v],H=[],J=R[v+2];v<R.length-2&&mxUtils.ptSegDistSq(A.x,A.y,J.x,J.y,z.x,z.y)<1*this.scale*this.scale;)z=J,v++,J=R[v+2];W=f(0,A.x,A.y)||W;for(var O=0;O<this.validEdges.length;O++){var G=this.validEdges[O],ja=G.absolutePoints;if(null!=ja&&mxUtils.intersects(K,G)&&"1"!=G.style.noJump)for(G=0;G<ja.length-1;G++){var fa=ja[G+1],ca=ja[G];for(J=ja[G+2];G<ja.length-2&&mxUtils.ptSegDistSq(ca.x,ca.y,J.x,J.y,fa.x, fa.y)<1*this.scale*this.scale;)fa=J,G++,J=ja[G+2];J=mxUtils.intersection(A.x,A.y,z.x,z.y,ca.x,ca.y,fa.x,fa.y);if(null!=J&&(Math.abs(J.x-A.x)>k||Math.abs(J.y-A.y)>k)&&(Math.abs(J.x-z.x)>k||Math.abs(J.y-z.y)>k)){fa=J.x-A.x;ca=J.y-A.y;J={distSq:fa*fa+ca*ca,x:J.x,y:J.y};for(fa=0;fa<H.length;fa++)if(H[fa].distSq>J.distSq){H.splice(fa,0,J);J=null;break}null==J||0!=H.length&&H[H.length-1].x===J.x&&H[H.length-1].y===J.y||H.push(J)}}}for(G=0;G<H.length;G++)W=f(1,H[G].x,H[G].y)||W}J=R[R.length-1];W=f(0,J.x, J.y)||W}K.routedPoints=d;return W}return!1};var q=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(K,R,W){this.routedPoints=null!=this.state?this.state.routedPoints:null;if(this.outline||null==this.state||null==this.style||null==this.state.routedPoints||0==this.state.routedPoints.length)q.apply(this,arguments);else{var d=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,f=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
g()}catch(p){null!=e&&e(p)}};DrawioFile.prototype.mergeLatestVersion=function(b,e,g){this.getLatestVersion(mxUtils.bind(this,function(p){this.ui.editor.graph.model.beginUpdate();try{this.ui.replaceFileData(p.getData()),null!=b&&this.patch(b)}finally{this.ui.editor.graph.model.endUpdate()}this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(p.getDescriptor());this.descriptorChanged();null!=e&&e()}),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
mxGraphView.prototype.stateValidated=function(l){null!=l.shape&&this.redrawEnumerationState(l);return ja.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(l){l=decodeURIComponent(mxUtils.getValue(l.style,"enumerateValue",""));""==l&&(l=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(l)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(l){var B="1"==mxUtils.getValue(l.style, "enumerate",0);B&&null==l.secondLabel?(l.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),l.secondLabel.size=12,l.secondLabel.state=l,l.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(l,l.secondLabel)):B||null==l.secondLabel||(l.secondLabel.destroy(),l.secondLabel=null);B=l.secondLabel;if(null!=B){var N=l.view.scale,Z=this.createEnumerationValue(l);l=this.graph.model.isVertex(l.cell)?new mxRectangle(l.x+l.width-4* N,l.y+4*N,0,0):mxRectangle.fromPoint(l.view.getPoint(l));B.bounds.equals(l)&&B.value==Z&&B.scale==N||(B.bounds=l,B.value=Z,B.scale=N,B.redraw())}};var fa=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){fa.apply(this,arguments);if(mxClient.IS_GC&&null!=this.getDrawPane()){var l=this.getDrawPane().parentNode;!this.graph.mathEnabled||mxClient.NO_FO||null!=this.webKitForceRepaintNode&&null!=this.webKitForceRepaintNode.parentNode||"svg"!=this.graph.container.firstChild.nodeName?
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,oa,xa])})};mxCellEditor.prototype.isContentEditing=function(){var x=this.graph.view.getState(this.editingCell);return null!=x&&1==x.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var x="";window.getSelection?x=window.getSelection():document.getSelection?x=document.getSelection():document.selection&&(x=document.selection.createRange().text); return""!=x};mxCellEditor.prototype.insertTab=function(x){var L=this.textarea.ownerDocument.defaultView.getSelection(),Q=L.getRangeAt(0),X="\t";if(null!=x)for(X="";0<x;)X+=" ",x--;x=document.createElement("span");x.style.whiteSpace="pre";x.appendChild(document.createTextNode(X));Q.insertNode(x);Q.setStartAfter(x);Q.setEndAfter(x);L.removeAllRanges();L.addRange(Q)};mxCellEditor.prototype.alignText=function(x,L){var Q=null!=L&&mxEvent.isShiftDown(L);if(Q||null!=window.getSelection&&null!=window.getSelection().containsNode){var 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
[];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)+
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
try{p.pasteXml(K,!0)}finally{q.getModel().endUpdate()}}else mxClipboard.paste(q)}),F=!0)}catch(K){}F||mxClipboard.paste(q)}},!1,"sprite-paste",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(F){function K(W){if(null!=W){for(var d=!0,f=0;f<W.length&&d;f++)d=d&&q.model.isEdge(W[f]);var k=q.view.translate;f=q.view.scale;var v=k.x,z=k.y;k=null;if(1==W.length&&d){var A=q.getCellGeometry(W[0]);null!=A&&(k=A.getTerminalPoint(!0))}k=null!=k?k:q.getBoundingBoxFromGeometry(W,d);null!=k&&(d=Math.round(q.snap(q.popupMenuHandler.triggerX/ f-v)),f=Math.round(q.snap(q.popupMenuHandler.triggerY/f-z)),q.cellsMoved(W,d-k.x,f-k.y))}}function R(){q.getModel().beginUpdate();try{K(mxClipboard.paste(q))}finally{q.getModel().endUpdate()}}if(q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())){F=!1;try{Editor.enableNativeCipboard&&(p.readGraphModelFromClipboard(function(W){if(null!=W){q.getModel().beginUpdate();try{K(p.pasteXml(W,!0))}finally{q.getModel().endUpdate()}}else R()}),F=!0)}catch(W){}F||R()}});this.addAction("copySize",function(){var F=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,p,y,q){DrawioFile.call(this,b,e);this.title=g;this.mode=p?null:App.MODE_DEVICE;this.fileHandle=y;this.desc=q};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title};
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.addListener(mxEvent.START_EDITING,function(la,oa){this.popupMenuHandler.hideMenu()});var x=this.updateMouseEvent;this.updateMouseEvent=function(la){la=x.apply(this,arguments);if(mxEvent.isTouchEvent(la.getEvent())&&null==la.getState()){var oa=this.getCellAt(la.graphX,la.graphY);null!=oa&&this.isSwimlane(oa)&&this.hitsSwimlaneContent(oa,la.graphX,la.graphY)||(la.state=this.view.getState(oa),null!=la.state&&null!=la.state.shape&&(this.container.style.cursor=la.state.shape.node.style.cursor))}null== la.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return la};var L=!1,Q=!1,X=!1,ea=this.fireMouseEvent;this.fireMouseEvent=function(la,oa,xa){la==mxEvent.MOUSE_DOWN&&(oa=this.updateMouseEvent(oa),L=this.isCellSelected(oa.getCell()),Q=this.isSelectionEmpty(),X=this.popupMenuHandler.isMenuShowing());ea.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(la,oa){var xa=mxEvent.isMouseEvent(oa.getEvent());this.popupMenuHandler.popupTrigger=!this.isEditing()&&
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
PrintDialog.createPrintPreview=function(b,e,g,p,y,q,E){e=new mxPrintPreview(b,e,g,p,y,q);e.title=mxResources.get("preview");e.addPageCss=!mxClient.IS_SF;e.printBackgroundImage=!0;e.autoOrigin=E;b=b.background;if(null==b||""==b||b==mxConstants.NONE)b="#ffffff";e.backgroundColor=b;var M=e.writeHead;e.writeHead=function(T){M.apply(this,arguments);T.writeln('<style type="text/css">');T.writeln("@media screen {");T.writeln(" body > div { padding:30px;box-sizing:content-box; }");T.writeln("}");T.writeln("</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
(n+=parseFloat(m.style.backboneSize)*m.view.scale/2-1);if("south"==m.style[mxConstants.STYLE_DIRECTION]||"north"==m.style[mxConstants.STYLE_DIRECTION])return u.x<c.getCenterX()&&(n=-1*(n+1)),new mxPoint(c.getCenterX()+n,Math.min(c.y+c.height,Math.max(c.y,u.y)));u.y<c.getCenterY()&&(n=-1*(n+1));return new mxPoint(Math.min(c.x+c.width,Math.max(c.x,u.x)),c.getCenterY()+n)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(c,m,u,n){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(c, new mxRectangle(0,0,0,Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(m.style,"size",ma.prototype.size))*m.view.scale))),m.style),m,u,n)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(c,m,u,n){var t="0"!=mxUtils.getValue(m.style,"fixedSize","0"),C=t?J.prototype.fixedSize:J.prototype.size;null!=m&&(C=mxUtils.getValue(m.style,"size",C));t&&(C*=m.view.scale);var D=c.x,ha=c.y,I=c.width,ua=c.height;m=null!=m?mxUtils.getValue(m.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
";");"elbowEdgeStyle"==this.currentEdgeStyle.edgeStyle&&null!=this.currentEdgeStyle.elbow&&(x+="elbow="+this.currentEdgeStyle.elbow+";");return x=null!=this.currentEdgeStyle.html?x+("html="+this.currentEdgeStyle.html+";"):x+"html=1;"};Graph.prototype.getPagePadding=function(){return new mxPoint(0,0)};Graph.prototype.loadStylesheet=function(){var x=null!=this.themes?this.themes[this.defaultThemeName]:mxStyleRegistry.dynamicLoading?mxUtils.load(STYLE_PATH+"/default.xml").getDocumentElement():null;null!= x&&(new mxCodec(x.ownerDocument)).decode(x,this.getStylesheet())};Graph.prototype.createCellLookup=function(x,L){L=null!=L?L:{};for(var Q=0;Q<x.length;Q++){var X=x[Q];L[mxObjectIdentity.get(X)]=X.getId();for(var ea=this.model.getChildCount(X),la=0;la<ea;la++)this.createCellLookup([this.model.getChildAt(X,la)],L)}return L};Graph.prototype.createCellMapping=function(x,L,Q){Q=null!=Q?Q:{};for(var X in x){var ea=L[X];null==Q[ea]&&(Q[ea]=x[X].getId()||"")}return Q};Graph.prototype.importGraphModel=function(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
oa))||(la=!1);la&&x.push(ea.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(x){for(var L=[],Q=0;Q<x.length;Q++)this.isCellDeletable(x[Q])&&this.isTransparentState(this.view.getState(x[Q]))&&L.push(x[Q]);x=L;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(x,L){this.setAttributeForCell(x,"link",L)};Graph.prototype.setTooltipForCell=function(x,L){var Q="tooltip";Graph.translateDiagram&&
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.initClipboard=function(){var b=this,e=mxClipboard.cut;mxClipboard.cut=function(q){q.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):e.apply(this,arguments);b.updatePasteActionStates()};mxClipboard.copy=function(q){var E=null;if(q.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{E=E||q.getSelectionCells();E=q.getExportableCells(q.model.getTopmostCells(E));for(var M={},T=q.createCellLookup(E),F=q.cloneCells(E,null,M),K=new mxGraphModel,R=K.getChildAt(K.getRoot(), 0),W=0;W<F.length;W++){K.add(R,F[W]);var d=q.view.getState(E[W]);if(null!=d){var f=q.getCellGeometry(F[W]);null!=f&&f.relative&&!K.isEdge(E[W])&&null==T[mxObjectIdentity.get(K.getParent(E[W]))]&&(f.offset=null,f.relative=!1,f.x=d.x/d.view.scale-d.view.translate.x,f.y=d.y/d.view.scale-d.view.translate.y)}}q.updateCustomLinks(q.createCellMapping(M,T),F);mxClipboard.insertCount=1;mxClipboard.setCells(F)}b.updatePasteActionStates();return E};var g=mxClipboard.paste;mxClipboard.paste=function(q){var E= null;q.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):E=g.apply(this,arguments);b.updatePasteActionStates();return E};var p=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){p.apply(this,arguments);b.updatePasteActionStates()};var y=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(q,E){y.apply(this,arguments);b.updatePasteActionStates()};this.updatePasteActionStates()};
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,".scratchpad"))})):this.closeLibrary(this.scratchpad))};EditorUi.prototype.createLibraryDataFromImages=function(d){if(!Editor.defaultCompressed)for(var f=0;f<d.length;f++)null!=d[f].xml&&"<"!=d[f].xml.charAt(0)&&(d[f].xml=mxUtils.trim(Graph.decompress(d[f].xml)));f=mxUtils.createXmlDocument();var k=f.createElement("mxlibrary");mxUtils.setTextContent(k,JSON.stringify(d,null,2));f.appendChild(k);return mxUtils.getXml(f,"\n")};EditorUi.prototype.closeLibrary=function(d){null!=d&&(this.removeLibrarySidebar(d.getHash()),
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
"crosshair";mxConnectionHandler.prototype.createEdgeState=function(x){x=this.graph.createCurrentEdgeStyle();x=this.graph.createEdge(null,null,null,null,null,x);x=new mxCellState(this.graph.view,x,this.graph.getCellStyle(x));for(var L in this.graph.currentEdgeStyle)x.style[L]=this.graph.currentEdgeStyle[L];if(null!=this.previous){var Q=this.previous.style.newEdgeStyle;if(null!=Q)try{var X=JSON.parse(Q);for(L in X)x.style[L]=X[L]}catch(ea){}}x.style=this.graph.postProcessCellStyle(x.cell,x.style);return 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.replaceElement=function(x,L){L=x.ownerDocument.createElement(null!=L?L:"span");for(var Q=Array.prototype.slice.call(x.attributes);attr=Q.pop();)L.setAttribute(attr.nodeName,attr.nodeValue);L.innerHTML=x.innerHTML;x.parentNode.replaceChild(L,x)};Graph.prototype.processElements=function(x,L){if(null!=x){x=x.getElementsByTagName("*");for(var Q=0;Q<x.length;Q++)L(x[Q])}};Graph.prototype.updateLabelElements=function(x,L,Q){x=null!=x?x:this.getSelectionCells();for(var X=document.createElement("div"),
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.handleConflictError=function(b,e){var g=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),p=mxUtils.bind(this,function(E){this.handleFileError(E,!0)}),y=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.editor.setStatus(""),this.save(!0,g,p,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),q=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&& this.synchronizeFile(mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&this.save(!0,g,p,null,null,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage)}),p)});"none"==DrawioFile.SYNC?this.showCopyDialog(g,p,y):this.invalidChecksum?this.showRefreshDialog(g,p,this.getErrorMessage(b)):e?this.showConflictDialog(y,q):this.addConflictStatus(this.getErrorMessage(b),mxUtils.bind(this,function(){this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("updatingDocument"))); this.synchronizeFile(g,p)}))};DrawioFile.prototype.getErrorMessage=function(b){var e=null!=b?null!=b.error?b.error.message:b.message:null;null==e&&null!=b&&b.code==App.ERROR_TIMEOUT?e=mxResources.get("timeout"):"0"==e&&(e=mxResources.get("noResponse"));return e};DrawioFile.prototype.isOverdue=function(){return null!=this.ageStart&&Date.now()-this.ageStart.getTime()>=this.ui.warnInterval};
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.selectTableRange=function(b,e){var g=!1;if(this.isTableCell(b)&&this.isTableCell(e)){var p=this.model.getParent(b),y=this.model.getParent(p),q=this.model.getParent(e);if(y==this.model.getParent(q)){b=p.getIndex(b);p=y.getIndex(p);var E=q.getIndex(e),M=y.getIndex(q);q=Math.max(p,M);e=Math.min(b,E);b=Math.max(b,E);E=[];for(p=Math.min(p,M);p<=q;p++){M=this.model.getChildAt(y,p);for(var T=e;T<=b;T++)E.push(this.model.getChildAt(M,T))}0<E.length&&(1<E.length||1<this.getSelectionCount()|| !this.isCellSelected(E[0]))&&(this.setSelectionCells(E),g=!0)}}return 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
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); B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((U&3)<<4|(aa&240)>>4);B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((aa&15)<<2);B+="=";break}Y=l.charCodeAt(N++);B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(U>>2);B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((U&3)<<4|(aa&240)>>4);B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((aa&15)<<2|(Y&192)>>6); B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(Y&63)}return B};Editor.prototype.loadUrl=function(l,B,N,Z,U,aa,Y,ka){try{var qa=!Y&&(Z||/(\.png)($|\?)/i.test(l)||/(\.jpe?g)($|\?)/i.test(l)||/(\.gif)($|\?)/i.test(l)||/(\.pdf)($|\?)/i.test(l));U=null!=U?U:!0;var ra=mxUtils.bind(this,function(){mxUtils.get(l,mxUtils.bind(this,function(pa){if(200<=pa.getStatus()&&299>=pa.getStatus()){if(null!=B){var wa=pa.getText();if(qa){if((9==document.documentMode||10==document.documentMode)&&
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
isDeletable:!0,defVal:L,countProperty:Q};xa=ra(Da,"",sa,0==xa%2,ea);Z(Da,L,sa);oa.parentNode.insertBefore(xa,oa.nextSibling);mxEvent.consume(la)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function ka(Da,Ma,x,L,Q,X,ea){if(0<Q){var la=Array(Q);Ma=null!=Ma?Ma.split(","):[];for(var oa=0;oa<Q;oa++)la[oa]=null!=Ma[oa]?Ma[oa]:null!=L?L:"";Ca.push({name:Da,values:la,type:x,defVal:L,parentRow:X,flipBkg:ea,size:Q})}return document.createElement("div")}function qa(Da,
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[xa].height)}}finally{this.getModel().endUpdate()}}}return L};Graph.prototype.isCloneEvent=function(x){return mxClient.IS_MAC&&mxEvent.isMetaDown(x)||mxEvent.isControlDown(x)};Graph.prototype.createSvgImageExport=function(){var x=new mxImageExport;x.getLinkForCellState=mxUtils.bind(this,function(L,Q){return this.getLinkForCell(L.cell)});return x};Graph.prototype.parseBackgroundImage=function(x){var L=null;null!=x&&0<x.length&&(x=JSON.parse(x),L=new mxImage(x.src,x.width,x.height));return L};Graph.prototype.getBackgroundImageObject=
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,da){this.graph.setSelectionCell(da||S)};this.connectionHandler.constraintHandler.isStateIgnored=function(S,da){var P=S.view.graph;return da&&(P.isCellSelected(S.cell)||P.isTableRow(S.cell)&&P.selectionCellsHandler.isHandled(P.model.getParent(S.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var S=this.connectionHandler.constraintHandler;null!=S.currentFocus&&S.isStateIgnored(S.currentFocus,!0)&&(S.currentFocus=null,S.constraints=null,S.destroyIcons());
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.currentTranslate,T=this.graph.currentScale;E=new mxRectangle((E.x+M.x)*T,(E.y+M.y)*T,E.width*T,E.height*T)}return E};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var e=mxGraphView.prototype.validate;mxGraphView.prototype.validate=function(E){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y, this.scale=1,this.translate.x=0,this.translate.y=0);e.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var g=mxGraph.prototype.getCellsForGroup;Graph.prototype.getCellsForGroup=function(E){E=g.apply(this,arguments);for(var M=[],T=0;T<E.length;T++)this.isTableRow(E[T])||this.isTableCell(E[T])||M.push(E[T]);return M};var p=mxGraph.prototype.getCellsForUngroup;
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.addListener("darkModeChanged",ba);this.addListener("sketchModeChanged",ba);this.addListener("currentThemeChanged",mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();this.refresh()}));f.addListener("enabledChanged",mxUtils.bind(this,function(){f.isEnabled()||this.hideShapePicker()}));d=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==d.embedViewport)mxUtils.fit(this.div);else{var P=parseInt(this.div.offsetLeft), V=parseInt(this.div.offsetWidth),l=d.embedViewport.x+d.embedViewport.width,B=parseInt(this.div.offsetTop),N=parseInt(this.div.offsetHeight),Z=d.embedViewport.y+d.embedViewport.height;this.div.style.left=Math.max(d.embedViewport.x,Math.min(P,l-V))+"px";this.div.style.top=Math.max(d.embedViewport.y,Math.min(B,Z-N))+"px";this.div.style.height=Math.min(d.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(d.embedViewport.width,parseInt(this.div.style.width))+"px"}};
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