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
var F=0,O=0,S=I.geometry,K=mxUtils.format((J.geometry.x+3-S.x)/S.width);J=mxUtils.format((J.geometry.y+3-S.y)/S.height);0>K?(F=K*S.width,K=0):1<K&&(F=(K-1)*S.width,K=1);0>J?(O=J*S.height,J=0):1<J&&(O=(J-1)*S.height,J=1);return{x:K,y:J,dx:parseInt(F),dy:parseInt(O)}}function D(J){if(1==N.getSelectionCount()){var F=N.getSelectionCell();J&&(F.constObj=null);J=E(F);T.value=100*J.x;q.value=100*J.y;p.value=J.dx;C.value=J.dy;G.style.visibility=""}else G.style.visibility="hidden"}var z=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
g)};EditorUi.prototype.embedExtFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(d)};EditorUi.prototype.exportToCanvas=function(d,g,n,t,u,v,B,H,L,G,T,p,q,C,J,F){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(d,g,n,t,u,v,B,H,L,G,T,p,q,C,J,F)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(l){try{this.ui.spinner.stop(),f(l.getHash().substring(1),l)}catch(x){c(x)}}),c,!0)}),c)}),mxUtils.bind(this,function(){this.ui.spinner.stop()}))};DropboxClient.prototype.pickFile=function(e,f){null!=Dropbox.choose?(e=null!=e?e:mxUtils.bind(this,function(c,k){this.ui.loadFile(null!=c?"D"+encodeURIComponent(c):k.getHash(),null,k)}),Dropbox.choose({linkType:"direct",cancel:mxUtils.bind(this,function(){}),success:mxUtils.bind(this,function(c){if(this.ui.spinner.spin(document.body,mxResources.get("loading")))if(f)this.ui.spinner.stop(), e(c[0].link);else{var k=mxUtils.bind(this,function(D){this.ui.spinner.stop();this.ui.handleError(D)}),l=mxUtils.bind(this,function(D,z){this.ui.spinner.stop();e(D,z)}),x=/\.png$/i.test(c[0].name);if(/\.vsdx$/i.test(c[0].name)||/\.gliffy$/i.test(c[0].name)||!this.ui.useCanvasForExport&&x)l(c[0].link);else{var y=c[0].link.indexOf(this.appPath);if(0<y){var E=decodeURIComponent(c[0].link.substring(y+this.appPath.length-1));this.readFile({path:E},mxUtils.bind(this,function(D,z){if(null!=z&&z.id==c[0].id){var N= x?D.lastIndexOf(","):-1;this.ui.spinner.stop();var I=null;0<N&&(N=this.ui.extractGraphModelFromPng(D),null!=N&&0<N.length?D=N:I=new LocalFile(this,D,E,!0));e(E.substring(1),null!=I?I:new DropboxFile(this.ui,D,z))}else this.createFile(c[0],l,k)}),k,x)}else this.createFile(c[0],l,k)}}})})):this.ui.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})};DropboxClient.prototype.createFile=function(e,f,c){var k=/(\.png)$/i.test(e.name);this.ui.editor.loadUrl(e.link,mxUtils.bind(this,function(l){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
k.model.isVertex(p)&&k.isAutoSizeCell(p)&&k.updateCellSize(p)}finally{k.getModel().endUpdate()}k.scrollCellToVisible(p);k.setSelectionCell(p);k.container.focus();k.editAfterInsert&&k.startEditing(p);window.setTimeout(function(){null!=c.hoverIcons&&c.hoverIcons.update(k.view.getState(p))},0);return p},H=function(p,q,C,J,F){p=new mxCell(p,new mxGeometry(0,0,q,C),J);p.vertex=!0;null==F&&(F=k.getCenterInsertPoint(k.getBoundingBoxFromGeometry([p],!0)));p.geometry.x=F.x;p.geometry.y=F.y;return B(p)};c.actions.put("insertText",
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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>Y&&(Y=U.strokeWidth/2);m.setStrokeAlpha(m.state.fillAlpha);m.setStrokeColor(U.fill||"");m.setStrokeWidth(Y);m.setDashed(!1);this._drawToContext(M,Q,U);m.setDashed(X);m.setStrokeWidth(P);m.setStrokeColor(W);m.setStrokeAlpha(V)};A._drawToContext=function(M,Q,U){M.begin();for(var W=0;W<Q.ops.length;W++){var P=Q.ops[W],V=P.data;switch(P.op){case "move":M.moveTo(V[0],V[1]);break;case "bcurveTo":M.curveTo(V[0],V[1],V[2],V[3],V[4],V[5]);break;case "lineTo":M.lineTo(V[0],V[1])}}M.end();"fillPath"===Q.type&& U.filled?M.fill():M.stroke()};return A};(function(){function m(W,P,V){this.canvas=W;this.rc=P;this.shape=V;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,m.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,m.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,m.prototype.rect);this.originalRoundrect=this.canvas.roundrect;this.canvas.roundrect=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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{y.container.style.visibility="";y.model.endUpdate();y.cellRenderer.redraw=N;this.changeListenerEnabled=E;f||(k.history=l,k.indexOfNextAdd=x,k.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)z!=y.mathEnabled? (this.ui.editor.updateGraphComponents(),y.refresh()):(D!=y.foldingEnabled?y.view.revalidate():y.view.validate(),y.sizeDidChange());null!=this.sync&&this.isRealtime()&&!c&&(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",f)}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
mxUtils.bind(this,function(Oa){Q=b.sidebar.currentElt==ra}),null,null),mxEvent.addListener(ha,"click",mxUtils.bind(this,function(Oa){Q||Na(Oa,null!=na?na:pa);mxEvent.consume(Oa)})));fa.appendChild(ra);return ra}function p(){function aa(ra,Ha){ra=mxResources.get(ra,null,ra.substring(0,1).toUpperCase()+ra.substring(1));18<ra.length&&(ra=ra.substring(0,18)+"&hellip;");return ra+(null!=Ha?" ("+Ha.length+")":"")}function la(ra,Ha,La){mxEvent.addListener(Ha,"click",function(){Fa!=Ha&&(Fa.style.backgroundColor= "",Fa=Ha,Fa.style.backgroundColor=x,fa.scrollTop=0,fa.innerText="",S=0,null!=sa[ra].content?(fa.appendChild(sa[ra].content),ma=ca,Ga=null,null!=sa[ra].content.init&&sa[ra].content.init()):(Ga=La?va[ra][La]:sa[ra],W=null,v(!1)))});null!=urlParams["smart-template"]&&"smartTemplate"==ra&&Ha.click()}Qa&&(Qa=!1,mxEvent.addListener(fa,"scroll",function(ra){fa.scrollTop+fa.clientHeight>=fa.scrollHeight&&(v(),mxEvent.consume(ra))}));if(0<Da){var na=document.createElement("div");na.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
A,M,Q){for(var U=0;U<Q;U++)m=Editor.crcTable[(m^A.charCodeAt(M+U))&255]^m>>>8;return m};Editor.crc32=function(m){for(var A=-1,M=0;M<m.length;M++)A=A>>>8^Editor.crcTable[(A^m.charCodeAt(M))&255];return(A^-1)>>>0};Editor.writeGraphModelToPng=function(m,A,M,Q,U){function W(Z,da){var ba=X;X+=da;return Z.substring(ba,X)}function P(Z){Z=W(Z,4);return Z.charCodeAt(3)+(Z.charCodeAt(2)<<8)+(Z.charCodeAt(1)<<16)+(Z.charCodeAt(0)<<24)}function V(Z){return String.fromCharCode(Z>>24&255,Z>>16&255,Z>>8&255,Z&255)}
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
return T}),G=!0);return G};var B=u.stop;u.stop=function(){B.call(this);this.active=!1;null!=u.status&&null!=u.status.parentNode&&u.status.parentNode.removeChild(u.status);u.status=null};u.pause=function(){return function(){}};return u};EditorUi.prototype.isCompatibleString=function(d){try{var g=mxUtils.parseXml(d),n=this.editor.extractGraphModel(g.documentElement,!0);return null!=n&&0==n.getElementsByTagName("parsererror").length}catch(t){}return!1};EditorUi.prototype.isVisioData=function(d){return 8<
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
2)F=q(S),O.push([F.x,F.y]),y.push(F);c.setAttribute("d",PerfectFreehand.getSvgPathFromStroke(O,u))}else{l+=" L"+F.x+" "+F.y;O="";y=[];for(S=2;S<d.length;S+=2)F=q(S),O+=" L"+F.x+" "+F.y,y.push(F);c.setAttribute("d",l+O)}N&&(F=b.view.translate,b.scrollRectToVisible((new mxRectangle(C.x-F.x,C.y-F.y)).grow(20)));J.consume()}}),mouseUp:mxUtils.bind(this,function(C,J){c&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(H(J.getEvent()),J.consume())})});var T=function(C){return mxUtils.convertPoint(b.container, mxEvent.getClientX(C),mxEvent.getClientY(C))},p=function(C){for(d.push(C);d.length>f;)d.shift()},q=function(C){var J=d.length;if(1===J%2||J>=f){var F=0,O=0,S,K=0;for(S=C;S<J;S++)K++,C=d[S],F+=C.x,O+=C.y;return{x:F/K,y:O/K}}return null}}}mxFreehand.prototype.NO_SMOOTHING=1;mxFreehand.prototype.MILD_SMOOTHING=4;mxFreehand.prototype.NORMAL_SMOOTHING=8;mxFreehand.prototype.VERY_SMOOTH_SMOOTHING=12;mxFreehand.prototype.SUPER_SMOOTH_SMOOTHING=16;mxFreehand.prototype.HYPER_SMOOTH_SMOOTHING=20;function P2PCollab(b,e,f){function c(K,R){try{if(!q){var m=e.file.getCurrentUser();if(p&&null!=m&&null!=m.displayName){var A={from:H,id:n,type:K,sessionId:e.clientId,userId:m.id,username:m.displayName,data:R,protocol:DrawioFileSync.PROTOCOL,editor:EditorUi.VERSION};A={bytes:e.objectToString(A),data:"aes"};A=JSON.stringify(A);C&&"cursor"!=K&&EditorUi.debug("P2PCollab: sending to socket server",[A]);n++;m=!C&&("cursor"==K||"selectionChange"==K);T&&!m&&S("message",A);if(m)for(p2pId in G)G[p2pId].send(A)}}}catch(M){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
null;B=mxUtils.button("",mxUtils.bind(this,function(H){this.pickColor(v||"none",function(L){v=L;n()});mxEvent.consume(H)}));n();B.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";B.style.marginLeft="4px";B.style.height="22px";B.style.width="22px";B.style.position="relative";B.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";B.className="geColorBtn";d.appendChild(B);mxUtils.br(d);return{getColor:function(){return v},getTarget:function(){return t.value},focus:function(){t.focus()}}};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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+"')";break;default:null==V?K=[{driveId:P}]:K.push({name:Y,driveId:P,folderId:V}),qa=(P?"/drives/"+P:"/me/drive")+(V?"/items/"+V:"/root")+"/children"}ea||(qa+=(0<qa.indexOf("?")?"&":"?")+"select=id,name,description,parentReference,file,createdBy,lastModifiedBy,lastModifiedDateTime,size,folder,remoteItem,@microsoft.graph.downloadUrl");var ia=[];ba()}}function L(P){U.className=U.className.replace("odCatSelected","");U=P;U.className+=" odCatSelected"}function G(P){S||(W=null,H("search",null,null,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
1024*v,H=Math.min(B+1024,n),L=Array(H-B),G=0;B<H;++G,++B)L[G]=d[B].charCodeAt(0);u[v]=new Uint8Array(L)}return new Blob(u,{type:g})};EditorUi.prototype.saveLocalFile=function(d,g,n,t,u,v,B,H){v=null!=v?v:!1;B=null!=B?B:"vsdx"!=u&&(!mxClient.IS_IOS||!navigator.standalone);u=this.getServiceCount(v);isLocalStorage&&u++;var L=4>=u?2:6<u?4:3;g=new CreateDialog(this,g,mxUtils.bind(this,function(G,T){try{if("_blank"==T)if(null!=n&&"image/"==n.substring(0,6))this.openInNewWindow(d,n,t);else if(null!=n&&"text/html"== n.substring(0,9)){var p=new EmbedDialog(this,d);this.showDialog(p.container,450,240,!0,!0);p.init()}else{var q=window.open("about:blank");null==q?mxUtils.popup(d,!0):(q.document.write("<pre>"+mxUtils.htmlEntities(d,!1)+"</pre>"),q.document.close())}else T==App.MODE_DEVICE||"download"==T?this.doSaveLocalFile(d,G,n,t,null,H):null!=G&&0<G.length&&this.pickFolder(T,mxUtils.bind(this,function(C){try{this.exportFile(d,G,n,t,T,C)}catch(J){this.handleError(J)}}))}catch(C){this.handleError(C)}}),mxUtils.bind(this, function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,v,B,null,1<u,L,d,n,t);v=this.isServices(u)?u>L?390:280:160;this.showDialog(g.container,420,v,!0,!0);g.init()};EditorUi.prototype.openInNewWindow=function(d,g,n){var t=window.open("about:blank");null==t||null==t.document?mxUtils.popup(d,!0):("image/svg+xml"!=g||mxClient.IS_SVG?"image/svg+xml"!=g||n?(d=n?d:btoa(unescape(encodeURIComponent(d))),t.document.write('<html><img style="max-width:100%;" src="data:'+g+";base64,"+
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.initMinimalTheme=function(){function b(I,d){if(EditorUi.windowed){var g=I.editor.graph;g.popupMenuHandler.hideMenu();null==I.formatWindow?(d=Math.max(10,I.diagramContainer.clientWidth-248),g=Math.min(566,g.container.clientHeight-10),I.formatWindow=new WrapperWindow(I,mxResources.get("format"),d,60,240,g,function(n){I.createFormat(n).init()}),I.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){I.formatWindow.window.fit()})),I.formatWindow.window.minimumSize=new mxRectangle(0, 0,240,80)):I.formatWindow.window.setVisible(null!=d?d:!I.formatWindow.window.isVisible())}else null==I.formatElt&&(I.formatElt=I.createSidebarContainer(),I.createFormat(I.formatElt).init(),I.formatElt.style.border="none",I.formatElt.style.width="240px",I.formatElt.style.borderLeft="1px solid gray",I.formatElt.style.right="0px"),g=I.diagramContainer.parentNode,null!=I.formatElt.parentNode?(I.formatElt.parentNode.removeChild(I.formatElt),g.style.right="0px"):(g.parentNode.appendChild(I.formatElt),g.style.right= I.formatElt.style.width)}function e(I,d){function g(u,v){var B=I.menus.get(u);u=n.addMenu(v,mxUtils.bind(this,function(){B.funct.apply(this,arguments)}));u.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:solid;width:50%;height:32px;box-sizing:border-box;font-size:11px;";u.className="geTitle";d.appendChild(u);return u}var n=new Menubar(I,d);if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
za,this.stylesheet=ea,this.refresh());return Ca};var L=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(m){L.apply(this,arguments);null!=m.secondLabel&&(m.secondLabel.destroy(),m.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(m){return[m.shape,m.text,m.secondLabel,m.control]};var G=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){G.apply(this,arguments);this.enumerationState=0};var T=mxGraphView.prototype.stateValidated;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var e=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=e){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var f=mxFreehand.prototype.NORMAL_SMOOTHING,c=null,k=[],l,x=[],y,E=!1,D=!0,z=!0,N=!0,I=!0,d=[],g=!1,n=!1,t=!1,u={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},v=!0;this.setClosedPath=function(C){E=C};this.setAutoClose=function(C){D=C};this.setAutoInsert=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
P};var U=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(W,P,V,X,Y,Z){null!=W.handJiggle&&W.handJiggle.constructor==m?(W.handJiggle.passThrough=!0,U.apply(this,arguments),W.handJiggle.passThrough=!1):U.apply(this,arguments)}})();Editor.fastCompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:Graph.arrayBufferToString(pako.deflateRaw(m))};Editor.fastDecompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:pako.inflateRaw(Graph.stringToArrayBuffer(atob(m)), {to:"string"})};Editor.extractGraphModel=function(m,A,M){if(null!=m&&"undefined"!==typeof pako){var Q=m.ownerDocument.getElementsByTagName("div"),U=[];if(null!=Q&&0<Q.length)for(var W=0;W<Q.length;W++)if("mxgraph"==Q[W].getAttribute("class")){U.push(Q[W]);break}0<U.length&&(Q=U[0].getAttribute("data-mxgraph"),null!=Q?(U=JSON.parse(Q),null!=U&&null!=U.xml&&(m=mxUtils.parseXml(U.xml),m=m.documentElement)):(U=U[0].getElementsByTagName("div"),0<U.length&&(Q=mxUtils.getTextContent(U[0]),Q=Graph.decompress(Q,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
g[n].parentNode&&"root"!=g[n].parentNode.nodeName&&null!=g[n].parentNode.parentNode&&(g[n].setAttribute("id",g[n].parentNode.getAttribute("id")),g[n].parentNode.parentNode.replaceChild(g[n],g[n].parentNode));return d};EditorUi.prototype.synchronizeCurrentFile=function(d){var g=this.getCurrentFile();null!=g&&(g.savingFile?this.handleError({message:mxResources.get("busy")}):!d&&g.invalidChecksum?g.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(g.clearAutosave(), this.editor.setStatus(""),d?g.reloadFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(n){g.handleFileError(n,!0)})):g.synchronizeFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(n){g.handleFileError(n,!0)}))))};EditorUi.prototype.getFileData=function(d,g,n,t,u,v,B,H,L,G,T){u=null!=u?u:!0;v=null!=v?v:!1;G=null!=G?G:!Editor.defaultCompressed;var p=this.editor.graph;if(g||!d&&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
TrelloClient.prototype.getFile=function(b,e,f,c,k){k=null!=k?k:!1;var l=mxUtils.bind(this,function(){var x=b.split(this.SEPARATOR),y=!0,E=window.setTimeout(mxUtils.bind(this,function(){y=!1;f({code:App.ERROR_TIMEOUT,retry:l})}),this.ui.timeout);Trello.cards.get(x[0]+"/attachments/"+x[1],mxUtils.bind(this,function(D){window.clearTimeout(E);if(y){var z=/\.png$/i.test(D.name),N={Authorization:'OAuth oauth_consumer_key="'+Trello.key()+'", oauth_token="'+Trello.token()+'"'};/\.v(dx|sdx?)$/i.test(D.name)|| /\.gliffy$/i.test(D.name)||!this.ui.useCanvasForExport&&z?this.ui.convertFile(PROXY_URL+"?url="+encodeURIComponent(D.url),D.name,D.mimeType,this.extension,e,f,null,N):(y=!0,E=window.setTimeout(mxUtils.bind(this,function(){y=!1;f({code:App.ERROR_TIMEOUT})}),this.ui.timeout),this.ui.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(D.url),mxUtils.bind(this,function(I){window.clearTimeout(E);if(y){D.compoundId=b;if(0<(z?I.lastIndexOf(","):-1)){var d=this.ui.extractGraphModelFromPng(I);null!=d&&0<d.length&& (I=d)}k?e(new TrelloLibrary(this.ui,I,D)):e(new TrelloFile(this.ui,I,D))}}),mxUtils.bind(this,function(I,d){window.clearTimeout(E);y&&(401==d.status?this.authenticate(l,f,!0):f())}),z||null!=D.mimeType&&"image/"==D.mimeType.substring(0,6),null,null,null,N))}}),mxUtils.bind(this,function(D){window.clearTimeout(E);y&&(null!=D&&401==D.status?this.authenticate(l,f,!0):f())}))});this.authenticate(l,f)};TrelloClient.prototype.insertLibrary=function(b,e,f,c,k){this.insertFile(b,e,f,c,!0,k)};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
g.getCurrentCellStyle(F).treeMoving);return O}function l(F){var O=!1;null!=F&&(F=n.getParent(F),O=g.view.getState(F),O="tree"==(null!=O?O.style:g.getCellStyle(F)).containerType);return O}function x(F){var O=!1;null!=F&&(F=n.getParent(F),O=g.view.getState(F),g.view.getState(F),O=null!=(null!=O?O.style:g.getCellStyle(F)).childLayout);return O}function y(F){F=g.view.getState(F);if(null!=F){var O=g.getIncomingTreeEdges(F.cell);if(0<O.length&&(O=g.view.getState(O[0]),null!=O&&(O=O.absolutePoints,null!=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.customFonts)))}finally{M.getModel().endUpdate()}}}));this.editorUi.showDialog(U.container,380,Editor.enableWebFonts?250:180,!0,!0);U.init()}),q,null,!0)})))}})();function DiagramPage(b,e){this.node=b;null!=e?this.node.setAttribute("id",e):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.isResampleImageSize=function(d,g){g=null!=g?g:this.resampleThreshold;return d>g};EditorUi.prototype.resizeImage=function(d,g,n,t,u,v,B){u=null!=u?u:this.maxImageSize;var H=Math.max(1,d.width),L=Math.max(1,d.height);if(t&&this.isResampleImageSize(null!=B?B:g.length,v))try{var G=Math.max(H/u,L/u);if(1<G){var T=Math.round(H/G),p=Math.round(L/G),q=document.createElement("canvas");q.width=T;q.height=p;q.getContext("2d").drawImage(d,0,0,T,p);var C=q.toDataURL();if(C.length<g.length){var 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
function(W,P,V,X,Y,Z){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(W+Y,P),this.lineTo(W+V-Y,P),this.quadTo(W+V,P,W+V,P+Z),this.lineTo(W+V,P+X-Z),this.quadTo(W+V,P+X,W+V-Y,P+X),this.lineTo(W+Y,P+X),this.quadTo(W,P+X,W,P+X-Z),this.lineTo(W,P+Z),this.quadTo(W,P,W+Y,P))};m.prototype.drawPath=function(W){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),W)}catch(V){}this.passThrough=!1}else if(null!=this.nextShape){for(var P in W)this.nextShape.options[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
return T}),G=!0);return G};var B=u.stop;u.stop=function(){B.call(this);this.active=!1;null!=u.status&&null!=u.status.parentNode&&u.status.parentNode.removeChild(u.status);u.status=null};u.pause=function(){return function(){}};return u};EditorUi.prototype.isCompatibleString=function(d){try{var g=mxUtils.parseXml(d),n=this.editor.extractGraphModel(g.documentElement,!0);return null!=n&&0==n.getElementsByTagName("parsererror").length}catch(t){}return!1};EditorUi.prototype.isVisioData=function(d){return 8< d.length&&(208==d.charCodeAt(0)&&207==d.charCodeAt(1)&&17==d.charCodeAt(2)&&224==d.charCodeAt(3)&&161==d.charCodeAt(4)&&177==d.charCodeAt(5)&&26==d.charCodeAt(6)&&225==d.charCodeAt(7)||80==d.charCodeAt(0)&&75==d.charCodeAt(1)&&3==d.charCodeAt(2)&&4==d.charCodeAt(3)||80==d.charCodeAt(0)&&75==d.charCodeAt(1)&&3==d.charCodeAt(2)&&6==d.charCodeAt(3))};EditorUi.prototype.isRemoteVisioData=function(d){return 8<d.length&&(208==d.charCodeAt(0)&&207==d.charCodeAt(1)&&17==d.charCodeAt(2)&&224==d.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
m)this.editPlantUmlData(K,R,m);else if(m=this.graph.getAttributeForCell(K,"mermaidData"),null!=m)this.editMermaidData(K,R,m);else{var A=g.getCellStyle(K);"1"==mxUtils.getValue(A,"metaEdit","0")?d.showDataDialog(K):n.apply(this,arguments)}}catch(M){d.handleError(M)}};g.getLinkTitle=function(K){return d.getLinkTitle(K)};g.customLinkClicked=function(K){var R=!1;try{d.handleCustomLink(K),R=!0}catch(m){d.handleError(m)}return R};var t=g.parseBackgroundImage;g.parseBackgroundImage=function(K){var R=t.apply(this, arguments);null!=R&&null!=R.src&&Graph.isPageLink(R.src)&&(R={originalSrc:R.src});return R};var u=g.setBackgroundImage;g.setBackgroundImage=function(K){null!=K&&null!=K.originalSrc&&(K=d.createImageForPageLink(K.originalSrc,d.currentPage,this));u.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
(L?null!=S.resp&&0<S.resp.length&&null!=S.resp[0]?(T=S.resp[0],L=!1,J()):q():null!=S.resp&&0<S.resp.length&&null!=S.resp[0]?F(S.resp[0]):C())}}catch(K){console.log(K)}});window.addEventListener("message",B)}})));d(v);v.onversionchange=function(){v.close()}}catch(B){null!=g?g(B):null!=window.console&&console.warn(B)}});t.onerror=g;t.onblocked=function(){}}catch(u){null!=g?g(u):null!=window.console&&console.error(u)}else null!=g&&g(Error("IndexedDB not supported"))}else d(this.database)};EditorUi.prototype.setDatabaseItem=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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==R.getTerminal(m[A],!0)){R.setTerminal(m[A],F,!0);var M=g.getCellGeometry(m[A]);M.points=null;null!=M.getTerminalPoint(!0)&&M.setTerminalPoint(null,!0)}}finally{R.endUpdate()}return m}}var L={67:d.actions.get("selectChildren"),88:d.actions.get("selectDescendants"),80:d.actions.get("selectParent"),83:d.actions.get("selectSiblings")},G=d.onKeyDown;d.onKeyDown=function(F){try{var O=g.getSelectionCell();if(g.isEnabled()&&!g.isEditing()&&null!=O){var S=mxEvent.isAltDown(F)&&mxEvent.isShiftDown(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
this.formatWindow.window.toggleMinimized()}));this.formatWindow.window.minimumSize=new mxRectangle(0,0,240,80);"sketch"==Editor.currentTheme?(d=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,(1200>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||708>d)&&this.formatWindow.window.toggleMinimized()):this.formatWindow.window.setVisible(!1)}};var y=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(d){var g= this.formatWindow;null!=g?g.window.setVisible(null!=d?d:!this.isFormatPanelVisible()):y.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(d){var g=EditorUi.prototype.hsplitPosition;0==g&&(g=134);var n=this.hsplitPosition,t=mxUtils.bind(this,function(){this.hsplitPosition=u;this.refresh();this.diagramContainer.scrollLeft-=n-this.hsplitPosition}),u=d?g:0;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==u?"translateX(0)":"translateX(-100%)");0!=u&&t();window.setTimeout(mxUtils.bind(this,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function q(F){null!=F&&(F=p(Editor.parseDiagramNode(F)));return F}mxEvent.addListener(T,"change",function(F){H=parseInt(T.value);q(L[H]);mxEvent.consume(F)});if("mxfile"==B.nodeName){var C=B.getElementsByTagName("diagram");L=[];for(var J=0;J<C.length;J++)L.push(C[J]);0<L.length&&q(L[H]);T.innerText="";if(1<L.length)for(T.style.display="",J=0;J<L.length;J++)C=document.createElement("option"),mxUtils.write(C,L[J].getAttribute("name")||mxResources.get("pageWithNumber",[J+1])),C.setAttribute("value",
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
ya.className="odEmptyFolder",ya.innerHTML=mxUtils.htmlEntities(mxResources.get("folderEmpty",null,"Folder is empty!")),Ba.appendChild(ya)):Ba.appendChild(xa);v();S=!1}function ba(ya){f(ya?ya:qa,function(xa){if(ma){var ta=xa.value||[];if(d||ea)Array.prototype.push.apply(ia,ta);else for(var Ka=0;Ka<ta.length;Ka++){var oa=ta[Ka],sa=oa.file?oa.file.mimeType:null;(oa.folder||"text/html"==sa||"text/xml"==sa||"application/xml"==sa||"image/png"==sa||/\.svg$/.test(oa.name)||/\.html$/.test(oa.name)||/\.xml$/.test(oa.name)|| /\.png$/.test(oa.name)||/\.drawio$/.test(oa.name)||/\.drawiolib$/.test(oa.name))&&ia.push(oa)}xa["@odata.nextLink"]&&1E3>ia.length?ba(xa["@odata.nextLink"]):(clearTimeout(za),da(ia))}},function(xa){if(ma){clearTimeout(za);var ta=null;try{ta=JSON.parse(xa.responseText).error.message}catch(Ka){}y(mxResources.get("errorFetchingFolder",null,"Error fetching folder items")+(null!=ta?" ("+ta+")":""));S=!1;q.stop()}},null!=ya)}if(!S){g(".odCatsList").style.display="block";g(".odFilesSec").style.display="block";
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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}l(N)}));f=!0}}catch(p){f=!1,null!=x&&x!=this.editor.graph&&null!=x.container.parentNode&&x.container.parentNode.removeChild(x.container)}f||window.clearTimeout(k);return f};App.prototype.createBackground=function(){var b=this.createDiv("background");b.style.position="absolute";b.style.background="white";b.style.left="0px";b.style.top="0px";b.style.bottom="0px";b.style.right="0px";mxUtils.setOpacity(b,100);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
EditorUi.debug("P2PCollab:","sendReply error",arguments,m)}});this.sendMessage=c;this.sendDiff=function(K){this.sendMessage("diff",{diff:K})};this.getState=function(){return null!=I?I.readyState:3};this.getLastError=function(){return O};this.mouseListeners={startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(K,R){},mouseMove:function(K,R){var m,A=-1;return function(){clearTimeout(m);var M=this,Q=arguments,U=function(){m=null;A=Date.now();K.apply(M,Q)};Date.now()-A>R?U():m=setTimeout(U,R)}}(function(K,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(d){var g=e.apply(this,arguments);if(null==g)try{var n=d.indexOf("&lt;mxfile ");if(0<=n){var t=d.lastIndexOf("&lt;/mxfile&gt;");t>n&&(g=d.substring(n,t+15).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}else{var u=mxUtils.parseXml(d),v=this.editor.extractGraphModel(u.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);g=null!=v?mxUtils.getXml(v):""}}catch(B){}return g};EditorUi.prototype.validateFileData=function(d){if(null!=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
!this.isCorsEnabledForUrl(m)){var A=/(\.v(dx|sdx?))($|\?)/i.test(m)||/(\.vs(x|sx?))($|\?)/i.test(m);A=/\.png$/i.test(m)||/\.pdf$/i.test(m)||A;var M="t="+(new Date).getTime();m=PROXY_URL+"?url="+encodeURIComponent(m)+"&"+M+(A?"&base64=1":"")}return m};Editor.prototype.isCorsEnabledForUrl=function(m){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||m.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors))); return null!=this.corsRegExp&&this.corsRegExp.test(m)||"https://raw.githubusercontent.com/"===m.substring(0,34)||"https://fonts.googleapis.com/"===m.substring(0,29)||"https://fonts.gstatic.com/"===m.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var m=new mxUrlConverter;m.updateBaseUrl();var A=m.convert,M=this;m.convert=function(Q){if(null!=Q){var U="http://"==Q.substring(0,7)||"https://"==Q.substring(0,8);U&&!navigator.onLine?Q=Editor.svgBrokenImage.src:!U||Q.substring(0,m.baseUrl.length)==
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
!0,!0,null,null,null,null,!0);C.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?C.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(d,g,n,t,u){var v=document.createElement("div");v.style.whiteSpace="nowrap";var B=this.editor.graph;if(null!=g){var H=document.createElement("h3");mxUtils.write(H,g);H.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";v.appendChild(H)}var L=this.addCheckbox(v,mxResources.get("fit"), !0),G=this.addCheckbox(v,mxResources.get("shadow"),B.shadowVisible&&t,!t),T=this.addCheckbox(v,n),p=this.addCheckbox(v,mxResources.get("lightbox"),!0),q=this.addEditButton(v,p),C=q.getEditInput(),J=1<B.model.getChildCount(B.model.getRoot()),F=this.addCheckbox(v,mxResources.get("layers"),J,!J);F.style.marginLeft=C.style.marginLeft;F.style.marginBottom="12px";F.style.marginTop="8px";mxEvent.addListener(p,"change",function(){p.checked?(J&&F.removeAttribute("disabled"),C.removeAttribute("disabled")): (F.setAttribute("disabled","disabled"),C.setAttribute("disabled","disabled"));C.checked&&p.checked?q.getEditSelect().removeAttribute("disabled"):q.getEditSelect().setAttribute("disabled","disabled")});g=new CustomDialog(this,v,mxUtils.bind(this,function(){d(L.checked,G.checked,T.checked,p.checked,q.getLink(),F.checked)}),null,mxResources.get("embed"),u);this.showDialog(g.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(d,g,n,t,u,v,B,H){function L(C){var J=" ",F="";t&&(J=" 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
Graph.prototype.setHiddenTags=function(m){this.hiddenTags=m;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(m){var A=mxUtils.indexOf(this.hiddenTags,m);0>A?this.hiddenTags.push(m):0<=A&&this.hiddenTags.splice(A,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(m){if(null==m||0==m.length||0==this.hiddenTags.length)return!1;m=m.split(" ");if(m.length>this.hiddenTags.length)return!1;for(var A=0;A<m.length;A++)if(0> mxUtils.indexOf(this.hiddenTags,m[A]))return!1;return!0};Graph.prototype.getCellsForTags=function(m,A,M,Q){var U=[];if(null!=m){A=null!=A?A:this.model.getDescendants(this.model.getRoot());for(var W=0,P={},V=0;V<m.length;V++)0<m[V].length&&(P[m[V]]=!0,W++);for(V=0;V<A.length;V++)if(M&&this.model.getParent(A[V])==this.model.root||this.model.isVertex(A[V])||this.model.isEdge(A[V])){var X=this.getTagsForCell(A[V]),Y=!1;if(0<X.length&&(X=X.split(" "),X.length>=m.length)){for(var Z=Y=0;Z<X.length&&Y<W;Z++)null!=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(K){return mxEvent.isMouseEvent(K.getEvent())};var V=this.click;this.click=function(K){var U=null==K.state&&null!=K.sourceState&&this.isCellLocked(this.getLayerForCell(K.sourceState.cell));if(this.isEnabled()&&!U||K.isConsumed())return V.apply(this,arguments);U=U?K.sourceState.cell:K.getCell();null!=U&&(U=this.getClickableLinkForCell(U),null!=U&&(this.isCustomLink(U)?this.customLinkClicked(U):this.openLink(U)))};this.tooltipHandler.getStateForEvent=function(K){return K.sourceState};var aa=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(C){z=C};this.setAutoScroll=function(C){N=C};this.setOpenFill=function(C){I=C};this.setStopClickEnabled=function(C){n=C};this.setSelectInserted=function(C){t=C};this.setSmoothing=function(C){f=C};this.setPerfectFreehandMode=function(C){v=C};this.isPerfectFreehandMode=function(){return v};this.setBrushSize=function(C){u.size=C};this.getBrushSize=function(){return u.size};var B=function(C){g=C;b.getRubberband().setEnabled(!C);b.graphHandler.setSelectEnabled(!C);b.graphHandler.setMoveEnabled(!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
V)&&(Q=0<Q.length?Q+" "+V:V,W=!0)}W&&this.setAttributeForCell(m[M],"tags",Q)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(m,A){if(0<m.length&&0<A.length){this.model.beginUpdate();try{for(var M=0;M<m.length;M++){var Q=this.getTagsForCell(m[M]);if(0<Q.length){for(var U=Q.split(" "),W=!1,P=0;P<A.length;P++){var V=mxUtils.indexOf(U,A[P]);0<=V&&(U.splice(V,1),W=!0)}W&&this.setAttributeForCell(m[M],"tags",U.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.tooltipHandler.show;this.tooltipHandler.show=function(){aa.apply(this,arguments);if(null!=this.div)for(var K=this.div.getElementsByTagName("a"),U=0;U<K.length;U++)null!=K[U].getAttribute("href")&&null==K[U].getAttribute("target")&&K[U].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(K){return K.sourceState};this.getCursorForMouseEvent=function(K){var U=null==K.state&&null!=K.sourceState&&this.isCellLocked(K.sourceState.cell);return this.getCursorForCell(U?K.sourceState.cell:
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
document.body.clientHeight)-80,800),null!=ja.title?mxResources.get(ja.title,null,ja.title):null,!0,new mxPoint(Ma,Ia),!0,null,!0);var Na=document.createElement("div");Na.className="geTempDlgDialogMask";K.appendChild(Na);var ra=b.sidebar.hideTooltip;b.sidebar.hideTooltip=function(){Na&&(K.removeChild(Na),Na=null,ra.apply(this,arguments),b.sidebar.hideTooltip=ra)};mxEvent.addListener(Na,"click",function(){b.sidebar.hideTooltip()})}}var ka=null;if(oa||b.sidebar.currentElt==aa)b.sidebar.hideTooltip();
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(C){z=C};this.setAutoScroll=function(C){N=C};this.setOpenFill=function(C){I=C};this.setStopClickEnabled=function(C){n=C};this.setSelectInserted=function(C){t=C};this.setSmoothing=function(C){f=C};this.setPerfectFreehandMode=function(C){v=C};this.isPerfectFreehandMode=function(){return v};this.setBrushSize=function(C){u.size=C};this.getBrushSize=function(){return u.size};var B=function(C){g=C;b.getRubberband().setEnabled(!C);b.graphHandler.setSelectEnabled(!C);b.graphHandler.setMoveEnabled(!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
libs:ja.getAttribute("libs"),clibs:ja.getAttribute("clibs"),title:ja.getAttribute("title")}),ja=ja.nextSibling;T(Fa)}});var Va=function(ja,aa,la){Ba.style.display="";Ka.stop();R=!1;if(m)m=!1;else if(aa)ea.innerText=aa;else{la=la||{};aa=0;for(var na in la)aa+=la[na].length;0==ja.length&&0==aa?ea.innerText=mxResources.get("noDiagrams"):G(ja,!1,V,0==aa?null:la)}};C(P);var Ua=null;mxEvent.addListener(xa,"keyup",O);mxEvent.addListener(xa,"search",O);mxEvent.addListener(xa,"input",O);mxEvent.addListener(ia,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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 l=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var d=this,g=this.editor.graph;Graph.touchStyle&&(g.panningHandler.isPanningTrigger=function(K){var R=K.getEvent();return null==K.getState()&&!mxEvent.isMouseEvent(R)&&!g.freehand.isDrawing()||mxEvent.isPopupTrigger(R)&&(null==K.getState()||mxEvent.isControlDown(R)||mxEvent.isShiftDown(R))});g.cellEditor.editPlantUmlData=function(K,R,m){var A=JSON.parse(m);
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
B){var H=B.lastIndexOf(".");0<H&&(B=B.substring(H+1,B.length));null==g[B]&&(g[B]=!0)}}var t=this.editor.graph,u=t.getCellStyle(d);n(mxStencilRegistry.getBasenameForStencil(u[mxConstants.STYLE_SHAPE]));t.model.isEdge(d)&&(n(mxMarker.getPackageForType(u[mxConstants.STYLE_STARTARROW])),n(mxMarker.getPackageForType(u[mxConstants.STYLE_ENDARROW])));u=t.model.getChildCount(d);for(var v=0;v<u;v++)this.addBasenamesForCell(t.model.getChildAt(d,v),g)};EditorUi.prototype.setGraphEnabled=function(d){this.diagramContainer.style.visibility= d?"":"hidden";this.formatContainer.style.visibility=d?"":"hidden";this.sidebarContainer.style.display=d?"":"none";this.hsplit.style.display=d&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme?"":"none";this.editor.graph.setEnabled(d);null!=this.tabContainer&&(this.tabContainer.style.visibility=d?"":"hidden");null!=this.ruler&&(this.ruler.hRuler.container.style.visibility=d?"":"hidden",this.ruler.vRuler.container.style.visibility=d?"":"hidden");d||this.hideWindows()};EditorUi.prototype.initializeEmbedMode=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.toolbar.edgeShapeMenu&&this.toolbar.edgeShapeMenu.setEnabled(d),null!=this.toolbar.edgeStyleMenu&&this.toolbar.edgeStyleMenu.setEnabled(d));this.updateUserElement()};EditorUi.prototype.updateButtonContainer=function(){};EditorUi.prototype.updateUserElement=function(){};EditorUi.prototype.scheduleSanityCheck=function(){};EditorUi.prototype.stopSanityCheck=function(){};EditorUi.prototype.isDiagramActive=function(){var d=this.getCurrentFile();return null!=d&&d.isEditable()||"1"==urlParams.embed&& this.editor.graph.isEnabled()};var z=EditorUi.prototype.createSidebar;EditorUi.prototype.createSidebar=function(d){var g=z.apply(this,arguments);this.addListener("darkModeChanged",mxUtils.bind(this,function(){g.refresh()}));this.addListener("sketchModeChanged",mxUtils.bind(this,function(){g.refresh()}));return g};var N=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){N.apply(this,arguments);var d=this.editor.graph,g=this.getCurrentFile(),n=this.getSelectionState(),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
ColorDialog.resetRecentColors=function(){E.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(m,A){var M=null;null!=m.editor.graph.getModel().getParent(A)?M=A.getId():null!=m.currentPage&&(M=m.currentPage.getId());return M});if(null!=window.StyleFormatPanel){var D=Format.prototype.init;Format.prototype.init=function(){D.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded", this.update)};var z=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?z.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(m){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var N=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(m){m=N.apply(this,arguments);var A=this.editorUi,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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 CreateDialog=function(b,e,f,c,k,l,x,y,E,D,z,N,I,d,g,n,t){function u(q,C,J,F){function O(){mxEvent.addListener(S,"click",function(){var M=J;if(x){var Q=H.value,U=Q.lastIndexOf(".");if(0>e.lastIndexOf(".")&&0>U){M=null!=M?M:p.value;var W="";M==App.MODE_GOOGLE?W=b.drive.extension:M==App.MODE_GITHUB?W=b.gitHub.extension:M==App.MODE_GITLAB?W=b.gitLab.extension:M==App.MODE_TRELLO?W=b.trello.extension:M==App.MODE_DROPBOX?W=b.dropbox.extension:M==App.MODE_ONEDRIVE?W=b.oneDrive.extension:M==App.MODE_DEVICE&& (W=".drawio");0<=U&&(Q=Q.substring(0,U));H.value=Q+W}}v(J)})}var S=document.createElement("a");S.style.overflow="hidden";var K=document.createElement("img");K.src=q;K.setAttribute("border","0");K.setAttribute("align","absmiddle");K.style.width="60px";K.style.height="60px";K.style.paddingBottom="6px";S.style.display="inline-block";S.className="geBaseButton";S.style.position="relative";S.style.margin="4px";S.style.padding="8px 8px 10px 8px";S.style.whiteSpace="nowrap";S.appendChild(K);S.style.color=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",d,"\nresponse:",T,"\nresult:",p),this.spinner.stop(),g(p,q,C,J))}),H)}),H,mxUtils.bind(this,function(q){3>t++?v.clear()&&(this.spinner.stop(),u()):H(q)}))}),H);else{var G={message:mxResources.get("error")+" "+L.getStatus()};try{G=JSON.parse(L.getText()),G=G.error}catch(T){}H(G)}}),H)}),n)});u()};EditorUi.prototype.extractMermaidMindmap=function(d){for(0<d[1].indexOf("orientation")&&d.splice(1,1);1<d.length&&""==d[1];)d.splice(1,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
DriveFile.prototype.saveFile=function(b,e,f,c,k,l){try{this.isEditable()?this.savingFile||(this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.createSecret(mxUtils.bind(this,function(x,y){var E=mxUtils.bind(this,function(D,z){try{var N=this.desc;null!=this.sync&&this.sync.fileSaving();this.ui.drive.saveFile(this,z,mxUtils.bind(this,function(I,d){try{this.savingFile=!1,0!=I?(this.setModified(this.getShadowModified()),e&&(this.lastAutosaveRevision=(new Date).getTime()),this.autosaveDelay= Math.round(Math.min(1E4,Math.max(DriveFile.prototype.autosaveDelay,this.saveDelay))),this.desc=I,null!=y?this.fileSaved(d,N,mxUtils.bind(this,function(){this.contentChanged();null!=f&&f(I)}),c,y):null!=f&&f(I)):null!=c&&c(I)}catch(g){if(this.savingFile=!1,null!=c)c(g);else throw g;}}),mxUtils.bind(this,function(I,d){try{this.savingFile=!1,this.isConflict(I)?(this.inConflictState=!0,null!=this.sync?(this.savingFile=!0,this.sync.fileConflict(d,mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this, function(){this.updateFileData();this.setShadowModified(!1);E(D,!0)}),100+500*Math.random())}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}))):null!=c&&c()):null!=c&&c(I)}catch(g){if(this.savingFile=!1,null!=c)c(g);else throw g;}}),k,k,D,null,x)}catch(I){if(this.savingFile=!1,null!=c)c(I);else throw I;}});E(l,e)}))):null!=f&&f()}catch(x){if(null!=c)c(x);else throw 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
500)});g("#refreshOD").addEventListener("click",function(){null!=R&&(e(null),H.apply(this,R))});D&&g("#odBackBtn").addEventListener("click",D);z&&g("#odSubmitBtn").addEventListener("click",t);null!=I?(D=I.pop(),"sharepoint"==I[0].driveId&&L(g("#odSharepoint")),K=I,H(D.driveId,D.folderId,D.siteId,D.name)):H()};App=function(b,e,f){EditorUi.call(this,b,e,null!=f?f:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||(window.onunload=mxUtils.bind(this,function(){var c=this.getCurrentFile();if(null!=c&&c.isModified()){var k={category:"DISCARD-FILE-"+c.getHash(),action:(c.savingFile?"saving":"")+(c.savingFile&&null!=c.savingFileTime?"_"+Math.round((Date.now()-c.savingFileTime.getTime())/1E3):"")+(null!=c.saveLevel?"-sl_"+c.saveLevel:"")+"-age_"+(null!= c.ageStart?Math.round((Date.now()-c.ageStart.getTime())/1E3):"x")+(this.editor.autosave?"":"-nosave")+(c.isAutosave()?"":"-noauto")+"-open_"+(null!=c.opened?Math.round((Date.now()-c.opened.getTime())/1E3):"x")+"-save_"+(null!=c.lastSaved?Math.round((Date.now()-c.lastSaved.getTime())/1E3):"x")+"-change_"+(null!=c.lastChanged?Math.round((Date.now()-c.lastChanged.getTime())/1E3):"x")+"-alive_"+Math.round((Date.now()-App.startTime.getTime())/1E3),label:null!=c.sync?"client_"+c.sync.clientId:"nosync"}; c.constructor==DriveFile&&null!=c.desc&&null!=this.drive&&(k.label+=(null!=this.drive.user?"-user_"+this.drive.user.id:"-nouser")+"-rev_"+c.desc.headRevisionId+"-mod_"+c.desc.modifiedDate+"-size_"+c.getSize()+"-mime_"+c.desc.mimeType);EditorUi.logEvent(k)}}));this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(){var c=this.getCurrentFile();null!=c&&EditorUi.logEvent({category:(this.editor.autosave?"ON":"OFF")+"-AUTOSAVE-FILE-"+c.getHash(),action:"changed",label:"autosave_"+(this.editor.autosave?
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
t)}))}else c({message:mxResources.get("accessDenied")});else D="&t="+(new Date).getTime(),d=this.baseUrl+"/projects/"+encodeURIComponent(z+"/"+N)+"/repository/files/"+encodeURIComponent(e)+"?ref="+I,y=new mxXmlRequest(d+D,null,"GET"),this.executeRequest(y,mxUtils.bind(this,function(g){try{f(this.createGitLabFile(z,N,I,JSON.parse(g.getText()),k,E))}catch(n){c(n)}}),c)}),c,x)};GitLabClient.prototype.getFileContent=function(e){var f=e.file_name,c=e.content;"base64"===e.encoding&&(/\.jpe?g$/i.test(f)? c="data:image/jpeg;base64,"+c:/\.gif$/i.test(f)?c="data:image/gif;base64,"+c:/\.pdf$/i.test(f)?c="data:application/pdf;base64,"+c:/\.png$/i.test(f)?(e=this.ui.extractGraphModelFromPng(c),c=null!=e&&0<e.length?e:"data:image/png;base64,"+c):c=Base64.decode(c));return c};GitLabClient.prototype.createGitLabFile=function(e,f,c,k,l,x){var y=DRAWIO_GITLAB_URL+"/";e={org:e,repo:f,ref:c,name:k.file_name,path:k.file_path,html_url:y+e+"/"+f+"/blob/"+c+"/"+k.file_path,download_url:y+e+"/"+f+"/raw/"+c+"/"+k.file_path+
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.addMenuItems(p,["-","close"])})));f.prototype.execute=function(){var p=this.ui.editor.graph;this.customFonts=this.prevCustomFonts;this.prevCustomFonts=this.ui.menus.customFonts;this.ui.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts));this.extFonts=this.previousExtFonts;for(var q=p.extFonts,C=0;null!=q&&C<q.length;C++){var J=document.getElementById("extFont_"+q[C].name);null!=J&&J.parentNode.removeChild(J)}p.extFonts=[];for(C=0;null!=this.previousExtFonts&&C<this.previousExtFonts.length;C++)this.ui.editor.graph.addExtFont(this.previousExtFonts[C].name, this.previousExtFonts[C].url);this.previousExtFonts=q};this.put("fontFamily",new Menu(mxUtils.bind(this,function(p,q){for(var C=mxUtils.bind(this,function(M,Q,U,W,P){var V=c.editor.graph;W=this.styleChange(p,W||M,"1"!=urlParams["ext-fonts"]?[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"]:[mxConstants.STYLE_FONTFAMILY],"1"!=urlParams["ext-fonts"]?[M,null!=Q?encodeURIComponent(Q):null,null]:[M],null,q,function(){"1"!=urlParams["ext-fonts"]?V.setFont(M,Q):(document.execCommand("fontname",!1,M),V.addExtFont(M,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
arguments))};var t=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(m,A,M,Q,U,W,P,V,X,Y,Z){t.apply(this,arguments);Graph.processFontAttributes(Z)};var u=mxText.prototype.redraw;mxText.prototype.redraw=function(){u.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(m,A,M){function Q(){for(var ea=P.getSelectionCells(),za=[],Ba=0;Ba<ea.length;Ba++)P.isCellVisible(ea[Ba])&& za.push(ea[Ba]);P.setSelectionCells(za)}function U(ea){P.setHiddenTags(ea?[]:V.slice());Q();P.refresh()}function W(ea,za){Y.innerText="";if(0<ea.length){var Ba=document.createElement("table");Ba.setAttribute("cellpadding","2");Ba.style.boxSizing="border-box";Ba.style.tableLayout="fixed";Ba.style.width="100%";var Ca=document.createElement("tbody");if(null!=ea&&0<ea.length)for(var ca=0;ca<ea.length;ca++)(function(fa){function qa(){var oa=P.getCellsForTags([fa],null,null,!0);P.isEnabled()?P.setSelectionCells(oa):
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.STYLE_STROKECOLOR,mxUtils.getValue(C,mxConstants.STYLE_STROKECOLOR,"#000"));"default"==C&&(C=b.shapeForegroundColor);return C};this.createStyle=function(C){var J=";fillColor=none;";v&&(J=";lineShape=1;");return mxConstants.STYLE_SHAPE+"="+C+J};this.stopDrawing=function(){if(0<k.length){if(v){for(var C=[],J=0;J<x.length;J++)null!=x[J]&&C.push([x[J].x,x[J].y]);C=PerfectFreehand.getStroke(C,u);x=[];for(J=0;J<C.length;J++)x.push({x:C[J][0],y:C[J][1]});x.push(null)}C=x[0].x;var F=x[0].x,O=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.customFonts)))}finally{M.getModel().endUpdate()}}}));this.editorUi.showDialog(U.container,380,Editor.enableWebFonts?250:180,!0,!0);U.init()}),q,null,!0)})))}})();function DiagramPage(b,e){this.node=b;null!=e?this.node.setAttribute("id",e):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.prototype.lineTo=function(W,P){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,W,P),this.lastX=W,this.lastY=P)};m.prototype.moveTo=function(W,P){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,W,P),this.lastX=W,this.lastY=P,this.firstX=W,this.firstY=P)};m.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};m.prototype.quadTo=function(W,P,V,X){this.passThrough?
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"sketchStyle","rough")?this.createComicCanvas(W):this.createRoughCanvas(W)};var M=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(W,P,V,X,Y){null!=W.handJiggle&&W.handJiggle.passThrough||M.apply(this,arguments)};var Q=mxShape.prototype.paint;mxShape.prototype.paint=function(W){var P=W.addTolerance,V=!0;null!=this.style&&(V="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=W.handJiggle&&W.handJiggle.constructor==m&&!this.outline){W.save(); var X=this.fill,Y=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,da=W.setStrokeColor;W.setStrokeColor=function(){};var ba=W.setFillColor;W.setFillColor=function(){};V||null==X||(this.configurePointerEvents=function(){});W.handJiggle.passThrough=!0;Q.apply(this,arguments);W.handJiggle.passThrough=!1;W.setFillColor=ba;W.setStrokeColor=da;this.configurePointerEvents=Z;this.stroke=Y;this.fill=X;W.restore();V&&null!=X&&(W.addTolerance=function(){})}Q.apply(this,arguments);W.addTolerance= P};var U=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(W,P,V,X,Y,Z){null!=W.handJiggle&&W.handJiggle.constructor==m?(W.handJiggle.passThrough=!0,U.apply(this,arguments),W.handJiggle.passThrough=!1):U.apply(this,arguments)}})();Editor.fastCompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:Graph.arrayBufferToString(pako.deflateRaw(m))};Editor.fastDecompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:pako.inflateRaw(Graph.stringToArrayBuffer(atob(m)),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.graphHandler.start=function(K,U,L,O){var X=!1;this.graph.isTableCell(K)&&(this.graph.isCellSelected(K)?X=!0:K=this.graph.model.getParent(K));X||this.graph.isTableRow(K)&&this.graph.isCellSelected(K)||(K=this.graph.getCompositeParent(K));C.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(K,U){U=this.graph.getCompositeParent(U);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(K,U,L,O,X,W){var J=mxConnectionHandler.prototype.insertEdge.apply(this, arguments);null!=O&&this.graph.applyNewEdgeStyle(O,[J]);return J};var G=new mxRubberband(this);this.getRubberband=function(){return G};var D=(new Date).getTime(),F=0,N=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var K=this.currentState;N.apply(this,arguments);K!=this.currentState?(D=(new Date).getTime(),F=0):F=(new Date).getTime()-D};var R=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(K){return mxEvent.isShiftDown(K.getEvent())&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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&&v.setAttribute("resource",n);var C=mxUtils.bind(this,function(J){J=(t?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(J);null!=u&&u(J);return J});g.mathEnabled&&this.editor.addMathCss(v);if(null!=u)this.embedFonts(v,mxUtils.bind(this,function(J){H?this.editor.convertImages(J,mxUtils.bind(this,function(F){C(F)})):C(J)}));else return C(v)};EditorUi.prototype.embedFonts=function(d,g){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&& this.editor.addFontCss(d,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(n){try{null!=n&&this.editor.addFontCss(d,n),g(d)}catch(t){g(d)}}))}catch(n){g(d)}}))};EditorUi.prototype.exportImage=function(d,g,n,t,u,v,B,H,L,G,T,p,q){L=null!=L?L:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var C=this.editor.graph.isSelectionEmpty();n=null!=n?n:C;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"min"!=Editor.currentTheme||this.addMenuItems(p,["publishLink"],q);c.mode==App.MODE_ATLAS||"1"==urlParams.extAuth||"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||(p.addSeparator(q),c.menus.addSubmenu("embed",p,q))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(p,q){function C(O){O.pickFile(function(S){c.spinner.spin(document.body,mxResources.get("loading"))&&O.getFile(S,function(K){var R="data:image/"==K.getData().substring(0,11)?F(K.getTitle()): "text/xml";/\.svg$/i.test(K.getTitle())&&!c.editor.isDataSvg(K.getData())&&(K.setData(Editor.createSvgDataUri(K.getData())),R="image/svg+xml");J(K.getData(),R,K.getTitle())},function(K){c.handleError(K,null!=K?mxResources.get("errorLoadingFile"):null)},O==c.drive)},!0)}var J=mxUtils.bind(this,function(O,S,K){var R=k.view,m=k.getGraphBounds(),A=k.snap(Math.ceil(Math.max(0,m.x/R.scale-R.translate.x)+4*k.gridSize)),M=k.snap(Math.ceil(Math.max(0,(m.y+m.height)/R.scale-R.translate.y)+4*k.gridSize));"data:image/"==
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"4px");null!=Z&&ma.setAttribute("title",Z);null!=da&&(V=function(){da.isEnabled()?(ma.removeAttribute("disabled"),ma.style.cursor="pointer"):(ma.setAttribute("disabled","disabled"),ma.style.cursor="default")},da.addListener("stateChanged",V),B.addListener("enabledChanged",V),V());return ma}function g(V,X,Y){Y=document.createElement("div");Y.className="geMenuItem";Y.style.display="inline-block";Y.style.verticalAlign="top";Y.style.marginRight="6px";Y.style.padding="0 4px 0 4px";Y.style.height="30px";
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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!=b.currentPage&&null!=b.pages&&(E=mxUtils.indexOf(b.pages,b.currentPage));for(I=e.length-1;0<=I;I--){var P=function(V){var X=new Date(V.modifiedDate),Y=null;if(0<=X.getTime()){var Z=function(ba){d.stop();x.innerText="";var ma=mxUtils.parseXml(ba),ea=b.editor.extractGraphModel(ma.documentElement,!0);if(null!=ea){var za=function(Ca){null!=Ca&&(Ca=Ba(Editor.parseDiagramNode(Ca)));return Ca},Ba=function(Ca){var ca=Ca.getAttribute("background");if(null==ca||""==ca||ca==mxConstants.NONE)ca=y.defaultPageBackgroundColor;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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=A.editor.graph;if(M.isEnabled()){var Q=A.getCurrentFile();null!=Q&&Q.isAutosaveOptional()&&m.appendChild(this.createOption(mxResources.get("autosave"),function(){return A.editor.autosave},function(P){A.editor.setAutosave(P);A.editor.autosave&&Q.isModified()&&Q.fileChanged()},{install:function(P){this.listener=function(){P(A.editor.autosave)};A.editor.addListener("autosaveChanged",this.listener)},destroy:function(){A.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&M.isEnabled()&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
encodeURIComponent(F.name);y="";v()})));z.appendChild(S)})(C[J],J);100==C.length&&(z.appendChild(t),u=function(){z.scrollTop>=z.scrollHeight-z.offsetHeight&&p()},mxEvent.addListener(z,"scroll",u))}}))}),n)});I.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(z,mxResources.get("loading"));var H=mxUtils.bind(this,function(L){var G=this.ui.spinner,T=0;this.ui.spinner.stop();var p=function(){G.spin(z,mxResources.get("loading"));T+=1},q=function(){--T;0===T&&G.stop()};null==L&&(z.innerText=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.update)};var z=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?z.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(m){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var N=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(m){m=N.apply(this,arguments);var A=this.editorUi,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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,function(P){console.log(P)},600,null,null,null,null,null,J):(x(F,void 0),l(F))}function u(P){function V(X){Q.style.background="transparent";Q.innerText="";var Y=document.createElement("div");Y.className="odPreviewStatus";mxUtils.write(Y,X);Q.appendChild(Y);q.stop()}if(null!=Q)if(Q.style.background="transparent",Q.innerText="",null==P||P.folder||/\.drawiolib$/.test(P.name))V(mxResources.get("noPreview"));else try{null!=P.remoteItem&&(P=P.remoteItem),m=P,q.spin(Q),n(P,function(X){q.stop();
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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){return this.isTreeEdge(D)}))};Graph.prototype.getIncomingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function c(F){return n.isVertex(F)&&l(F)}function k(F){var O=!1;null!=F&&(O="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
function(C){z=C};this.setAutoScroll=function(C){N=C};this.setOpenFill=function(C){I=C};this.setStopClickEnabled=function(C){n=C};this.setSelectInserted=function(C){t=C};this.setSmoothing=function(C){f=C};this.setPerfectFreehandMode=function(C){v=C};this.isPerfectFreehandMode=function(){return v};this.setBrushSize=function(C){u.size=C};this.getBrushSize=function(){return u.size};var B=function(C){g=C;b.getRubberband().setEnabled(!C);b.graphHandler.setSelectEnabled(!C);b.graphHandler.setMoveEnabled(!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(P){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(P):Editor.mathJaxQueue.push(P)};Editor.onMathJaxDone=function(){};var U=Editor.prototype.init;Editor.prototype.init=function(){U.apply(this,arguments);var P=mxUtils.bind(this,function(V,X){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,P);this.graph.addListener(mxEvent.REFRESH,P)};A=document.getElementsByTagName("script");
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
ui.destroy = function() { if (container == null) { mxEvent.removeListener(document.documentElement, 'keydown', keydownHandler); document.body.removeChild(backdrop); document.body.removeChild(closeImg); document.body.style.overflow = overflow; GraphViewer.resizeSensorEnabled = true; destroy.apply(this, arguments); } };
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
this.cellRenderer.getLabelValue = function(state) { var result = mxCellRenderer.prototype.getLabelValue.apply(this, arguments); if (state.view.graph.isHtmlLabel(state.cell)) { if (state.style['html'] != 1) { result = mxUtils.htmlEntities(result, false); } else { // Skips sanitizeHtml for unchanged labels if (state.lastLabelValue != result) { state.lastLabelValue = result; state.lastSanitizedLabelValue = Graph.sanitizeHtml(result); } result = state.lastSanitizedLabelValue; } } return result; };
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
k){k=null!=k?k:c.name;var q=new FileReader;q.onload=mxUtils.bind(this,function(){this.parseFileData(q.result,e,k)});q.readAsText(c)};EditorUi.prototype.parseFileData=function(c,e,k){var q=new XMLHttpRequest;q.open("POST",OPEN_URL);q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");q.onreadystatechange=function(){e(q)};q.send("format=xml&filename="+encodeURIComponent(k)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(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
if(0==T&&0==B)T=A,B=1;else if(Math.abs(T-A)<=(N||1==p&&E?e:0))B+=1;else if(1<B&&E){q=q.slice(0,p+1);break}else if(3<=q.length-p&&!E)B=0,l=T=0!=n?n:0,q.splice(0,0==p?1:p),p=-1;else break;0!=l||N||(T=l=A)}3==q.length&&q[1]==J&&(l=0)}e=function(Q,L,U,g){var y=[];if(g){g=z;var H=0}else g=0,H=z;y.push(new mxPoint(Q.x-g,Q.y-H));y.push(new mxPoint(Q.x+g,Q.y+H));y.push(Q);y.push(L);y.push(new mxPoint(L.x-g,L.y-H));y.push(new mxPoint(L.x+g,L.y+H));if(null!=U)return U.points=y,U;Q=new mxPolyline(y,mxConstants.GUIDE_COLOR, mxConstants.GUIDE_STROKEWIDTH);Q.dialect=mxConstants.DIALECT_SVG;Q.pointerEvents=!1;Q.init(S.graph.getView().getOverlayPane());return Q};T=function(Q,L){if(Q&&null!=S.guidesArrHor)for(Q=0;Q<S.guidesArrHor.length;Q++)S.guidesArrHor[Q].node.style.visibility="hidden";if(L&&null!=S.guidesArrVer)for(Q=0;Q<S.guidesArrVer.length;Q++)S.guidesArrVer[Q].node.style.visibility="hidden"};if(1<B&&B==q.length-1){B=[];n=S.guidesArrHor;M=[];K=0;p=q[0]==J?1:0;E=q[p].y+q[p].height;if(0<l)for(p=0;p<q.length-1;p++)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
m=mxUtils.button(m,d);m.insertBefore(F,m.firstChild);m.style.marginTop="6px";m.className="geBigButton";m.style.fontSize="18px";m.style.padding="14px";u.appendChild(v);u.appendChild(b);u.appendChild(m);this.container=u},FontDialog=function(b,f,m,d,u){function v(x){this.style.border="";13==x.keyCode&&t.click()}var D=document.createElement("table"),F=document.createElement("tbody");D.style.marginTop="8px";var K=document.createElement("tr");var M=document.createElement("td");M.colSpan=2;M.style.whiteSpace=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
b.editor.cancelFirst||m.appendChild(v);D.setAttribute("disabled","disabled");this.okBtn=D;f.appendChild(m);this.container=f}AspectDialog.prototype.init=function(){var b=this.ui.getFileData(!0);if(this.ui.pages)for(b=0;b<this.ui.pages.length;b++){var f=this.ui.updatePageRoot(this.ui.pages[b]);this.createPageItem(f.getId(),f.getName(),f.node)}else this.createPageItem("1","Page-1",mxUtils.parseXml(b).documentElement)};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
F.apply(this,arguments)};var K=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(J){K.apply(this,arguments);if(J){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=c&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=c&&this.formatWindow.window.setVisible(!0)}else null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!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
null==U.getTerminal(g[y],!0)){U.setTerminal(g[y],A,!0);var H=e.getCellGeometry(g[y]);H.points=null;null!=H.getTerminalPoint(!0)&&H.setTerminalPoint(null,!0)}}finally{U.endUpdate()}return g}}var I={67:c.actions.get("selectChildren"),88:c.actions.get("selectDescendants"),80:c.actions.get("selectParent"),83:c.actions.get("selectSiblings")},B=c.onKeyDown;c.onKeyDown=function(A){try{var N=e.getSelectionCell();if(e.isEnabled()&&!e.isEditing()&&null!=N){var Q=mxEvent.isAltDown(A)&&mxEvent.isShiftDown(A)?
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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!=b.currentPage&&null!=b.pages&&(K=mxUtils.indexOf(b.pages,b.currentPage));for(J=f.length-1;0<=J;J--){var R=function(W){var X=new Date(W.modifiedDate),Z=null;if(0<=X.getTime()){var Y=function(fa){c.stop();D.innerText="";var na=mxUtils.parseXml(fa),da=b.editor.extractGraphModel(na.documentElement,!0);if(null!=da){var za=function(Ba){null!=Ba&&(Ba=Ca(Editor.parseDiagramNode(Ba)));return Ba},Ca=function(Ba){var ba=Ba.getAttribute("background");if(null==ba||""==ba||ba==mxConstants.NONE)ba=F.defaultPageBackgroundColor;
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
mxResources.get("pageWithNumber",[fa+1]),mxUtils.write(na,da),na.setAttribute("title",da+" ("+M[fa].getAttribute("id")+")"),na.setAttribute("value",fa),fa==G&&na.setAttribute("selected","selected"),L.appendChild(na);U=function(){try{var Ba=parseInt(L.value);G=K=Ba;za(M[Ba])}catch(ba){L.value=K,b.handleError(ba)}}}else Ca(da);fa=W.lastModifyingUserName;null!=fa&&20<fa.length&&(fa=fa.substring(0,20)+"...");A.innerText="";mxUtils.write(A,(null!=fa?fa+" ":"")+X.toLocaleDateString()+" "+X.toLocaleTimeString());
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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,f,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{F.container.style.visibility="";F.model.endUpdate();F.cellRenderer.redraw=S;this.changeListenerEnabled=K;m||(u.history=v,u.indexOfNextAdd=D,u.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)G!=F.mathEnabled? (this.ui.editor.updateGraphComponents(),F.refresh()):(M!=F.foldingEnabled?F.view.revalidate():F.view.validate(),F.sizeDidChange());null!=this.sync&&this.isRealtime()&&!d&&(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",f,"undoable",m)}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
R};var P=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(V,R,W,X,Z,Y){null!=V.handJiggle&&V.handJiggle.constructor==g?(V.handJiggle.passThrough=!0,P.apply(this,arguments),V.handJiggle.passThrough=!1):P.apply(this,arguments)}})();Editor.fastCompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:Graph.arrayBufferToString(pako.deflateRaw(g))};Editor.fastDecompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:pako.inflateRaw(Graph.stringToArrayBuffer(atob(g)), {to:"string"})};Editor.extractGraphModel=function(g,y,H){if(null!=g&&"undefined"!==typeof pako){var O=g.ownerDocument.getElementsByTagName("div"),P=[];if(null!=O&&0<O.length)for(var V=0;V<O.length;V++)if("mxgraph"==O[V].getAttribute("class")){P.push(O[V]);break}0<P.length&&(O=P[0].getAttribute("data-mxgraph"),null!=O?(P=JSON.parse(O),null!=P&&null!=P.xml&&(g=mxUtils.parseXml(P.xml),g=g.documentElement)):(P=P[0].getElementsByTagName("div"),0<P.length&&(O=mxUtils.getTextContent(P[0]),O=Graph.decompress(O,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
(q<<5)-q+this.hashValue(c.childNodes[p],e,k)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);e=0;null!=k&&(k.byteCount+=c.length);for(p=0;p<c.length;p++)e=(e<<5)-e+c.charCodeAt(p)<<0;q^=e}return q};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,e,k,q,p,t,x){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.createUrlParameters=function(c,e,k,q,p,t,x){x=null!=x?x:[];q&&("https://viewer.diagrams.net"==EditorUi.lightboxHost&&"1"!=urlParams.dev||x.push("lightbox=1"),"auto"!=c&&x.push("target="+c),null!=e&&e!=mxConstants.NONE&&x.push("highlight="+("#"==e.charAt(0)?e.substring(1):e)),null!=p&&0<p.length&&x.push("edit="+encodeURIComponent(p)),t&&x.push("layers=1"),this.editor.graph.foldingEnabled&&x.push("nav=1"));k&&null!=this.currentPage&&null!=this.pages&&this.currentPage!=this.pages[0]&& x.push("page-id="+this.currentPage.getId());return x};EditorUi.prototype.createLink=function(c,e,k,q,p,t,x,C,I,B){I=this.createUrlParameters(c,e,k,q,p,t,I);c=this.getCurrentFile();e=!0;null!=x?k="#U"+encodeURIComponent(x):(c=this.getCurrentFile(),C||null==c||c.constructor!=window.DriveFile?k="#R"+encodeURIComponent(k?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(k="#"+c.getHash(),e=!1));e&&null!=c&&null!=c.getTitle()&&c.getTitle()!=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.configureFontCss=function(g){if(null!=g){Editor.prototype.fontCss=g;var y=document.getElementsByTagName("script")[0];if(null!=y&&null!=y.parentNode){var H=document.createElement("style");H.setAttribute("type","text/css");H.appendChild(document.createTextNode(g));y.parentNode.insertBefore(H,y);g=g.split("url(");for(H=1;H<g.length;H++){var O=g[H].indexOf(")");O=Editor.trimCssUrl(g[H].substring(0, O));var P=document.createElement("link");P.setAttribute("rel","preload");P.setAttribute("href",O);P.setAttribute("as","font");P.setAttribute("crossorigin","");y.parentNode.insertBefore(P,y)}}}};Editor.trimCssUrl=function(g){return g.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(g){g=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
App.prototype.checkLicense=function(){var b=this.drive.getUser(),f=null!=b?b.email:null;if(!this.isOffline()&&!this.editor.chromeless&&null!=f&&null!=b.id){var m=f.lastIndexOf("@"),d=0<=m?f.substring(m+1):"";b=Editor.crc32(b.id);mxUtils.post("/license","domain="+encodeURIComponent(d)+"&id="+encodeURIComponent(b)+"&ts="+(new Date).getTime(),mxUtils.bind(this,function(u){try{if(200<=u.getStatus()&&299>=u.getStatus()){var v=u.getText();if(0<v.length){var D=JSON.parse(v);null!=D&&this.handleLicense(D, d)}}}catch(F){}}))}};App.prototype.handleLicense=function(b,f){};App.prototype.getEditBlankXml=function(){var b=this.getCurrentFile();return null!=b&&this.editor.isChromelessView()&&this.editor.graph.isLightboxView()?b.getData():this.getFileData(!0)};App.prototype.updateActionStates=function(){EditorUi.prototype.updateActionStates.apply(this,arguments);this.actions.get("revisionHistory").setEnabled(this.isRevisionHistoryEnabled())};
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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){return mxEvent.isMouseEvent(K.getEvent())};var V=this.click;this.click=function(K){var U=null==K.state&&null!=K.sourceState&&this.isCellLocked(this.getLayerForCell(K.sourceState.cell));if(this.isEnabled()&&!U||K.isConsumed())return V.apply(this,arguments);U=U?K.sourceState.cell:K.getCell();null!=U&&(U=this.getClickableLinkForCell(U),null!=U&&(this.isCustomLink(U)?this.customLinkClicked(U):this.openLink(U)))};this.tooltipHandler.getStateForEvent=function(K){return K.sourceState};var aa=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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 T}),B=!0);return B};var x=p.stop;p.stop=function(){x.call(this);this.active=!1;null!=p.status&&null!=p.status.parentNode&&p.status.parentNode.removeChild(p.status);p.status=null};p.pause=function(){return function(){}};return p};EditorUi.prototype.isCompatibleString=function(c){try{var e=mxUtils.parseXml(c),k=this.editor.extractGraphModel(e.documentElement,!0);return null!=k&&0==k.getElementsByTagName("parsererror").length}catch(q){}return!1};EditorUi.prototype.isVisioData=function(c){return 8<
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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],"{1} ago"));z.setAttribute("title",n.toLocaleDateString()+" "+n.toLocaleTimeString())}function M(n){var z=document.createElement("img");z.className="geCommentBusyImg";z.src=IMAGE_PATH+"/spin.gif";n.appendChild(z);n.busyImg=z}function G(n){n.style.border="1px solid red";n.removeChild(n.busyImg)}function S(n){n.style.border="";n.removeChild(n.busyImg)}function J(n,z,E,A,N){function Q(V,R,W){var X=document.createElement("li");X.className="geCommentAction";var Z=document.createElement("a");Z.className=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
EditorUi.prototype.duplicatePage=function(b,f){var m=null;try{var d=this.editor.graph;if(d.isEnabled()){d.isEditing()&&d.stopEditing();var u=b.node.cloneNode(!1);u.removeAttribute("id");var v={},D=d.createCellLookup([d.model.root]);m=new DiagramPage(u);m.root=d.cloneCell(d.model.root,null,v);var F=new mxGraphModel;F.prefix=Editor.guid()+"-";F.setRoot(m.root);d.updateCustomLinks(d.createCellMapping(v,D),[m.root]);m.viewState=b==this.currentPage?d.getViewState():b.viewState;this.initDiagramNode(m); m.viewState.scale=1;delete m.viewState.scrollLeft;delete m.viewState.scrollTop;delete m.viewState.currentRoot;delete m.viewState.defaultParent;m.setName(f);m=this.insertPage(m,mxUtils.indexOf(this.pages,b)+1)}}catch(K){this.handleError(K)}return m};EditorUi.prototype.initDiagramNode=function(b){var f=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b.root));this.editor.graph.saveViewState(b.viewState,f);mxUtils.setTextContent(b.node,Graph.compressNode(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
g);mxEvent.addListener(this.container,"mousemove",g);mxEvent.addListener(this.container,"mouseleave",function(P){y=null});this.isMouseInsertPoint=function(){return null!=y};var H=this.getInsertPoint;this.getInsertPoint=function(){return null!=y?this.getPointForEvent(y):H.apply(this,arguments)};var O=this.layoutManager.getLayout;this.layoutManager.getLayout=function(P){var V=this.graph.getCellStyle(P);if(null!=V&&"rack"==V.childLayout){var R=new mxStackLayout(this.graph,!1);R.gridSize=null!=V.rackUnitSize? parseFloat(V.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;R.marginLeft=V.marginLeft||0;R.marginRight=V.marginRight||0;R.marginTop=V.marginTop||0;R.marginBottom=V.marginBottom||0;R.allowGaps=V.allowGaps||0;R.horizontal="1"==mxUtils.getValue(V,"horizontalRack","0");R.resizeParent=!1;R.fill=!0;return R}return O.apply(this,arguments)};this.updateGlobalUrlVariables()};var k=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(g,y){return Graph.processFontStyle(k.apply(this,
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
function(){k.apply(this,arguments);this.minimized?(q=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+q-140+"px"):(this.div.style.width=q+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-q+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(p){mxEvent.getSource(p)==this.formatWindow.window.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
f},ConnectionPointsDialog=function(b,f){function m(){null!=u&&u.destroy()}var d=document.createElement("div");d.style.userSelect="none";var u=null;this.init=function(){function v(E,A,N){E=new mxCell("",new mxGeometry(E,A,6,6),"shape=mxgraph.basic.x;fillColor=#29b6f2;strokeColor=#29b6f2;points=[];rotatable=0;resizable=0;connectable=0;editable=0;");E.vertex=!0;E.cp=!0;E.constObj=N;return S.addCell(E)}function D(E){E=S.getSelectionCells();S.deleteCells(E)}function F(){var E=parseInt(T.value)||0;E=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
c:null)}catch(q){this.handleError(q)}};EditorUi.prototype.writeImageToClipboard=function(c,e,k,q){var p=this.base64ToBlob(c.substring(c.indexOf(",")+1),"image/png");c=new ClipboardItem({"image/png":p,"text/html":new Blob(['<img src="'+c+'" width="'+e+'" height="'+k+'">'],{type:"text/html"})});navigator.clipboard.write([c])["catch"](q)};EditorUi.prototype.copyCells=function(c,e){var k=this.editor.graph;if(k.isSelectionEmpty())c.innerText="";else{var q=mxUtils.sortCells(k.model.getTopmostCells(k.getSelectionCells())),
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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&&0<z.length)return!0;d.showError(mxResources.get("error"),mxResources.get("invalidName"),mxResources.get("ok"));return!1},null,null,null,null,d.editor.fileExtensions);this.editorUi.showDialog(n.container,340,96,!0,!0);n.init()}}));G.isEnabled=function(){return this.enabled&&v.apply(this,arguments)};G.visible="1"!=urlParams.embed;d.actions.addAction("makeCopy...",mxUtils.bind(this,function(){var l=d.getCurrentFile();if(null!=l){var n=d.getCopyFilename(l);l.constructor==DriveFile?(n=new CreateDialog(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
(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",c,"\nresponse:",T,"\nresult:",l),this.spinner.stop(),e(l,n,z,E))}),C)}),C,mxUtils.bind(this,function(n){3>q++?t.clear()&&(this.spinner.stop(),p()):C(n)}))}),C);else{var B={message:mxResources.get("error")+" "+I.getStatus()};try{B=JSON.parse(I.getText()),B=B.error}catch(T){}C(B)}}),C)}),k)});p()};EditorUi.prototype.extractMermaidMindmap=function(c){for(0<c[1].indexOf("orientation")&&c.splice(1,1);1<c.length&&""==c[1];)c.splice(1,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
B=new mxAsyncCanvas(this.thumbImageCache);I.images=this.thumbImageCache.images;var T=new mxImageExport;T.drawShape=function(l,n){l.shape instanceof mxShape&&l.shape.checkBounds()&&(n.save(),n.translate(.5,.5),l.shape.paint(n),n.translate(-.5,-.5),n.restore())};T.drawText=function(l,n){};T.drawState(D.getView().getState(D.model.root),B);B.finish(mxUtils.bind(this,function(){try{T.drawState(D.getView().getState(D.model.root),I),D!=this.editor.graph&&null!=D.container.parentNode&&D.container.parentNode.removeChild(D.container)}catch(l){S=
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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<aa.length){var Pa=function(Na){U.setAttribute("disabled","disabled");ra.style.backgroundColor="transparent";ra.style.border="1px solid transparent";L.spin(ca);Ja(aa,function(Ya,Wa){L.stop();null!=Ya&&(B(ra,Ya,la,null,null,ya,Wa),Na&&I())})};ha=La||TEMPLATE_PATH+"/"+aa.substring(0,aa.length-4)+".png";ra.style.backgroundImage="url("+ha+")";ra.style.backgroundPosition="center center";ra.style.backgroundRepeat="no-repeat";if(null!=ma){ja=document.createElement("table");ja.setAttribute("width",
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe
"sketchStyle","rough")?this.createComicCanvas(V):this.createRoughCanvas(V)};var H=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(V,R,W,X,Z){null!=V.handJiggle&&V.handJiggle.passThrough||H.apply(this,arguments)};var O=mxShape.prototype.paint;mxShape.prototype.paint=function(V){var R=V.addTolerance,W=!0;null!=this.style&&(W="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=V.handJiggle&&V.handJiggle.constructor==g&&!this.outline){V.save(); var X=this.fill,Z=this.stroke;this.stroke=this.fill=null;var Y=this.configurePointerEvents,ea=V.setStrokeColor;V.setStrokeColor=function(){};var fa=V.setFillColor;V.setFillColor=function(){};W||null==X||(this.configurePointerEvents=function(){});V.handJiggle.passThrough=!0;O.apply(this,arguments);V.handJiggle.passThrough=!1;V.setFillColor=fa;V.setStrokeColor=ea;this.configurePointerEvents=Y;this.stroke=Z;this.fill=X;V.restore();W&&null!=X&&(V.addTolerance=function(){})}O.apply(this,arguments);V.addTolerance= R};var P=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(V,R,W,X,Z,Y){null!=V.handJiggle&&V.handJiggle.constructor==g?(V.handJiggle.passThrough=!0,P.apply(this,arguments),V.handJiggle.passThrough=!1):P.apply(this,arguments)}})();Editor.fastCompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:Graph.arrayBufferToString(pako.deflateRaw(g))};Editor.fastDecompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:pako.inflateRaw(Graph.stringToArrayBuffer(atob(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
u.model.isVertex(l)&&u.isAutoSizeCell(l)&&u.updateCellSize(l)}finally{u.getModel().endUpdate()}u.scrollCellToVisible(l);u.setSelectionCell(l);u.container.focus();u.editAfterInsert&&u.startEditing(l);window.setTimeout(function(){null!=d.hoverIcons&&d.hoverIcons.update(u.view.getState(l))},0);return l},C=function(l,n,z,E,A){l=new mxCell(l,new mxGeometry(0,0,n,z),E);l.vertex=!0;null==A&&(A=u.getCenterInsertPoint(u.getBoundingBoxFromGeometry([l],!0)));l.geometry.x=A.x;l.geometry.y=A.y;return x(l)};d.actions.put("insertText",
1
JavaScript
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
https://cwe.mitre.org/data/definitions/79.html
safe