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 |
---|---|---|---|---|---|---|---|
za.push(da[Ca]);R.setSelectionCells(za)}function P(da){R.setHiddenTags(da?[]:W.slice());O();R.refresh()}function V(da,za){Z.innerText="";if(0<da.length){var Ca=document.createElement("table");Ca.setAttribute("cellpadding","2");Ca.style.boxSizing="border-box";Ca.style.tableLayout="fixed";Ca.style.width="100%";var Ba=document.createElement("tbody");if(null!=da&&0<da.length)for(var ba=0;ba<da.length;ba++)(function(ca){function qa(){var pa=R.getCellsForTags([ca],null,null,!0);R.isEnabled()?R.setSelectionCells(pa): | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(g){var y=null;null!=g&&0<g.length&&("ER"==g.substring(0,2)?y="mxgraph.er":"sysML"==g.substring(0,5)&&(y="mxgraph.sysml"));return y};var A=mxMarker.createMarker;mxMarker.createMarker=function(g,y,H,O,P,V,R,W,X,Z){if(null!=H&&null==mxMarker.markers[H]){var Y=this.getPackageForType(H);null!=Y&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(){return this.openLink("mailto:"+mxUtils.htmlEntities(I.ownerEmail))}));this.showError(e,x,B,k,T,null,null,t,n,null,null,null,q?k:null)}else null!=k&&k()};EditorUi.prototype.alert=function(c,e,k){c=new ErrorDialog(this,null,c,mxResources.get("ok"),e);this.showDialog(c.container,k||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,e,k,q,p,t){c=null!=c?c:"";var x=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},C=Math.min(220,28*Math.ceil(Math.max(1,
c.length)/50));c=new ConfirmDialog(this,c,function(){x();null!=e&&e()},function(){x();null!=k&&k()},q,p,null,null,null,null,C);this.showDialog(c.container,340,46+C,!0,t);c.init()};EditorUi.prototype.showBanner=function(c,e,k,q,p,t,x,C,I){var B=!1;if(!(this.bannerShowing||this["hideBanner"+c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){t=null!=t?t:"bottom:10px;left:50%;";x=null!=x?x:"translate(-50%,120%)";C=null!=C?C:"translate(-50%,0%)";var T=p?500:1E3;B=p?"padding:4px;border-radius:6px;font-size:11px;height:12px;font-weight:normal;": | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.loadFileSystemEntry=function(b,f,m){m=null!=m?m:mxUtils.bind(this,function(d){this.handleError(d)});try{b.getFile().then(mxUtils.bind(this,function(d){var u=new FileReader;u.onload=mxUtils.bind(this,function(v){try{if(null!=f){var D=v.target.result;"image/png"==d.type&&(D=this.extractGraphModelFromPng(D));f(new LocalFile(this,D,d.name,null,b,d))}else this.openFileHandle(v.target.result,d.name,d,!1,b)}catch(F){m(F)}});u.onerror=m;"image"!==d.type.substring(0,5)&&"application/pdf"!==d.type||
"image/svg"===d.type.substring(0,9)?u.readAsText(d):u.readAsDataURL(d)}),m)}catch(d){m(d)}}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(){var x=M.origGuideDestroy.apply(this,arguments);if(null!=M.guidePart)try{c.putImageData(M.guidePart.imgData1,M.guidePart.x1,M.guidePart.y1),c.putImageData(M.guidePart.imgData2,M.guidePart.x2,M.guidePart.y2),c.putImageData(M.guidePart.imgData3,M.guidePart.x3,M.guidePart.y3),M.guidePart=null}catch(C){}return x}}mxRuler.prototype.RULER_THICKNESS=14;mxRuler.prototype.unit=mxConstants.POINTS;mxRuler.prototype.setUnit=function(b){this.unit=b;this.drawRuler()}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
v&&(this.lastAutosaveRevision=(new Date).getTime());this.save(v,mxUtils.bind(this,function(D){this.autosaveCompleted();null!=m&&m(D)}),mxUtils.bind(this,function(D){null!=d&&d(D)}))}else this.isModified()||this.ui.editor.setStatus(""),null!=m&&m(null)}catch(D){null!=d&&d(D)}}),b);EditorUi.debug("DrawioFile.autosave",[this],"thread",u,"delay",b,"saving",this.savingFile);this.autosaveThread=u};DrawioFile.prototype.isAutosaveNow=function(){return!0};DrawioFile.prototype.autosaveCompleted=function(){}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
!l){var Q=function(){H.value=Math.max(1,Math.min(A,Math.max(parseInt(H.value),parseInt(g.value))));g.value=Math.max(1,Math.min(A,Math.min(parseInt(H.value),parseInt(g.value))))},L=d.addRadiobox(n,"pages",mxResources.get("allPages"),!0),U=d.addRadiobox(n,"pages",mxResources.get("pages")+":",!1,null,!0),g=document.createElement("input");g.style.cssText="margin:0 8px 0 8px;";g.setAttribute("value","1");g.setAttribute("type","number");g.setAttribute("min","1");g.style.width="50px";n.appendChild(g);var y= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
return Editor.updateCRC(c,e,k,q)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,e,k,q,p){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,e,k,q,p)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],e=0;e<localStorage.length;e++){var k=
localStorage.key(e),q=localStorage.getItem(k);if(0<k.length&&(".scratchpad"==k||"."!=k.charAt(0))&&0<q.length){var p="<mxfile "===q.substring(0,8)||"<?xml"===q.substring(0,5)||"\x3c!--[if IE]>"===q.substring(0,12);q="<mxlibrary>"===q.substring(0,11);(p||q)&&c.push(k)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;var e=localStorage.getItem(c);return{title:c,data:e,isLib:"<mxlibrary>"=== | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Editor.createRoughCanvas=function(g){var y=rough.canvas({getContext:function(){return g}});y.draw=function(H){var O=H.sets||[];H=H.options||this.getDefaultOptions();for(var P=0;P<O.length;P++){var V=O[P];switch(V.type){case "path":null!=H.stroke&&this._drawToContext(g,V,H);break;case "fillPath":this._drawToContext(g,V,H);break;case "fillSketch":this.fillSketch(g,V,H)}}};y.fillSketch=function(H,O,P){var V=g.state.strokeColor,R=g.state.strokeWidth,W=g.state.strokeAlpha,X=g.state.dashed,Z=P.fillWeight; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.commentsWindow.window.setVisible(l);this.commentsWindow.refreshCommentsTime();l&&this.commentsWindow.hasError&&this.commentsWindow.refreshComments()}}));G.setToggleAction(!0);G.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.commentsWindow&&this.commentsWindow.window.isVisible()}));d.editor.addListener("fileLoaded",mxUtils.bind(this,function(){null!=this.commentsWindow&&(this.commentsWindow.destroy(),this.commentsWindow=null)}));this.get("viewPanels").funct=function(l,n){var z=
d.getCurrentFile();d.menus.addMenuItems(l,"toggleShapes format ruler - findReplace layers tags outline -".split(" "),n);d.commentsSupported()&&d.menus.addMenuItems(l,["comments"],n);null!=z&&z.isRealtimeEnabled()&&z.isRealtimeSupported()&&d.menus.addMenuItems(l,["showRemoteCursors"],n);d.menus.addMenuItems(l,["-","fullscreen"],n)};this.put("view",new Menu(mxUtils.bind(this,function(l,n){if("simple"==Editor.currentTheme){var z=d.getCurrentFile();d.menus.addMenuItems(l,["toggleShapes","format"],n); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Ea.style.background=ua&&"none"!=ua?ua:"url('"+Dialog.prototype.noColorImage+"')";btn=mxUtils.button("",mxUtils.bind(Y,function(Da){this.editorUi.pickColor(ua,function(Ta){Ea.style.background="none"==Ta?"url('"+Dialog.prototype.noColorImage+"')":Ta;O(pa,Ta,va)});mxEvent.consume(Da)}));btn.style.height="12px";btn.style.width="40px";btn.className="geColorBtn";btn.appendChild(Ea);return btn}function R(pa,ua,va,Ea,Da,Ta,Ia){null!=ua&&(ua=ua.split(","),fa.push({name:pa,values:ua,type:va,defVal:Ea,countProperty:Da,
parentRow:Ta,isDeletable:!0,flipBkg:Ia}));btn=mxUtils.button("+",mxUtils.bind(Y,function(Sa){for(var Ha=Ta,Va=0;null!=Ha.nextSibling;)if(Ha.nextSibling.getAttribute("data-pName")==pa)Ha=Ha.nextSibling,Va++;else break;var Ua={type:va,parentRow:Ta,index:Va,isDeletable:!0,defVal:Ea,countProperty:Da};Va=Z(pa,"",Ua,0==Va%2,Ia);O(pa,Ea,Ua);Ha.parentNode.insertBefore(Va,Ha.nextSibling);mxEvent.consume(Sa)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function W(pa, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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{H.getModel().endUpdate()}}}));this.editorUi.showDialog(P.container,380,Editor.enableWebFonts?250:180,!0,!0);P.init()}),n,null,!0)})))}})();function DiagramPage(b,f){this.node=b;null!=f?this.node.setAttribute("id",f):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 |
this.fileLoaded(new LocalFile(this,R,fa,!0)),null):this.importFile(R,W,X,Z,Y,ea,fa,na,da,z,l,n)}catch(za){return this.handleError(za),null}});t=null!=t?t:mxUtils.bind(this,function(R){U.setSelectionCells(R)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var y=c.length,H=y,O=[],P=mxUtils.bind(this,function(R,W){O[R]=W;if(0==--H){this.spinner.stop();if(null!=C)C(O);else{var X=[];U.getModel().beginUpdate();try{for(R=0;R<O.length;R++){var Z=O[R]();null!=Z&&(X=X.concat(Z))}}finally{U.getModel().endUpdate()}}t(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 |
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 |
function(){function V(){F(n,g,function(){M(g);n.editComment(n.content,function(){S(g)},function(R){G(g);V();b.handleError(R,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}V()},n.isResolved),Q(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){M(g);n.deleteComment(function(V){if(!0===V){V=g.querySelector(".geCommentTxt");V.innerText="";mxUtils.write(V,mxResources.get("msgDeleted"));var R=g.querySelectorAll(".geCommentAction");for(V= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(){try{null!=this.resolvedFontCss&&this.addFontCss(ca,this.resolvedFontCss),qa.src=Editor.createSvgDataUri(mxUtils.getXml(ca))}catch(Aa){null!=P&&P(Aa)}});this.embedExtFonts(mxUtils.bind(this,function(Aa){try{null!=Aa&&this.addFontCss(ca,Aa),this.loadFonts(ka)}catch(xa){null!=P&&P(xa)}}))}catch(Aa){null!=P&&P(Aa)}}),H,Y)}catch(ca){null!=P&&P(ca)}};Editor.crcTable=[];for(var u=0;256>u;u++)for(var v=u,D=0;8>D;D++)v=1==(v&1)?3988292384^v>>>1:v>>>1,Editor.crcTable[u]=v;Editor.updateCRC=function(g,
y,H,O){for(var P=0;P<O;P++)g=Editor.crcTable[(g^y.charCodeAt(H+P))&255]^g>>>8;return g};Editor.crc32=function(g){for(var y=-1,H=0;H<g.length;H++)y=y>>>8^Editor.crcTable[(y^g.charCodeAt(H))&255];return(y^-1)>>>0};Editor.writeGraphModelToPng=function(g,y,H,O,P){function V(Y,ea){var fa=X;X+=ea;return Y.substring(fa,X)}function R(Y){Y=V(Y,4);return Y.charCodeAt(3)+(Y.charCodeAt(2)<<8)+(Y.charCodeAt(1)<<16)+(Y.charCodeAt(0)<<24)}function W(Y){return String.fromCharCode(Y>>24&255,Y>>16&255,Y>>8&255,Y&255)} | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
H=y.editor.graph;if(H.isEnabled()){var O=y.getCurrentFile();null!=O&&O.isAutosaveOptional()&&g.appendChild(this.createOption(mxResources.get("autosave"),function(){return y.editor.autosave},function(R){y.editor.setAutosave(R);y.editor.autosave&&O.isModified()&&O.fileChanged()},{install:function(R){this.listener=function(){R(y.editor.autosave)};y.editor.addListener("autosaveChanged",this.listener)},destroy:function(){y.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&H.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 |
this.handleError({message:mxResources.get("error")+" "+z.getStatus()}))}),mxUtils.bind(this,function(z){this.handleError(z)}))}),l=mxUtils.bind(this,function(){window.clearTimeout(B);B=window.setTimeout(T,I)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){l();T()}));l();T()}null!=e&&e()});if(null!=c.url&&0<c.url.length){var t=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(t,mxUtils.bind(this,function(x){p(x)}),mxUtils.bind(this,function(x){null!=k&&k(x)}))}else p("")}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Graph.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(g){return g.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(g){return Graph.isGoogleFontUrl(g)};Graph.createFontElement=function(g,y){var H=Graph.fontMapping[y];null==H&&Graph.isCssFontUrl(y)?(g=document.createElement("link"),g.setAttribute("rel","stylesheet"),g.setAttribute("type","text/css"),g.setAttribute("charset","UTF-8"),g.setAttribute("href",y)):(null==H&&(H='@font-face {\nfont-family: "'+
g+'";\nsrc: url("'+y+'");\n}'),g=document.createElement("style"),mxUtils.write(g,H));return g};Graph.addFont=function(g,y,H){if(null!=g&&0<g.length&&null!=y&&0<y.length){var O=g.toLowerCase();if("helvetica"!=O&&"arial"!=g&&"sans-serif"!=O){var P=Graph.customFontElements[O];null!=P&&P.url!=y&&(P.elt.parentNode.removeChild(P.elt),P=null);null==P?(P=y,"http:"==y.substring(0,5)&&(P=PROXY_URL+"?url="+encodeURIComponent(y)),P={name:g,url:y,elt:Graph.createFontElement(g,P)},Graph.customFontElements[O]=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 |
e&&e(n)}}),null,null,null,mxUtils.bind(this,function(T){null!=e&&e(T)}),null,null,q,null,t.shadowVisible,null,t,p,null,null,null,"diagram",null)}catch(T){null!=e&&e(T)}};EditorUi.prototype.getEmbeddedSvg=function(c,e,k,q,p,t,x,C,I,B,T,l,n){C=null!=C?C:!0;T=null!=T?T:0;x=null!=I?I:e.background;x==mxConstants.NONE&&(x=null);t=e.getSvg(x,B,T,null,null,t,null,null,null,e.shadowVisible||l,null,n,"diagram");(e.shadowVisible||l)&&e.addSvgShadow(t,null,null,0==T);null!=c&&t.setAttribute("content",c);null!=
k&&t.setAttribute("resource",k);var z=mxUtils.bind(this,function(E){E=(q?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(E);null!=p&&p(E);return E});e.mathEnabled&&this.editor.addMathCss(t);if(null!=p)this.embedFonts(t,mxUtils.bind(this,function(E){C?this.editor.convertImages(E,mxUtils.bind(this,function(A){z(A)})):z(E)}));else return z(t)};EditorUi.prototype.embedFonts=function(c,e){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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;this.okButton=u;this.container=J},TemplatesDialog=function(b,f,m,d,u,v,D,F,K,M,G,S,J,c,e){function k(ia){wa.innerText=ia;wa.style.display="block";setTimeout(function(){wa.style.display="none"},4E3)}function q(){null!=y&&(y.style.fontWeight="normal",y.style.textDecoration="none",H=y,y=null)}function p(ia,aa,la,ma,oa,ha,ja){if(-1<ia.className.indexOf("geTempDlgRadioBtnActive"))return!1;ia.className+=" geTempDlgRadioBtnActive";L.querySelector(".geTempDlgRadioBtn[data-id="+ma+"]").className="geTempDlgRadioBtn "+ | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Editor.createRoughCanvas=function(g){var y=rough.canvas({getContext:function(){return g}});y.draw=function(H){var O=H.sets||[];H=H.options||this.getDefaultOptions();for(var P=0;P<O.length;P++){var V=O[P];switch(V.type){case "path":null!=H.stroke&&this._drawToContext(g,V,H);break;case "fillPath":this._drawToContext(g,V,H);break;case "fillSketch":this.fillSketch(g,V,H)}}};y.fillSketch=function(H,O,P){var V=g.state.strokeColor,R=g.state.strokeWidth,W=g.state.strokeAlpha,X=g.state.dashed,Z=P.fillWeight;
0>Z&&(Z=P.strokeWidth/2);g.setStrokeAlpha(g.state.fillAlpha);g.setStrokeColor(P.fill||"");g.setStrokeWidth(Z);g.setDashed(!1);this._drawToContext(H,O,P);g.setDashed(X);g.setStrokeWidth(R);g.setStrokeColor(V);g.setStrokeAlpha(W)};y._drawToContext=function(H,O,P){H.begin();for(var V=0;V<O.ops.length;V++){var R=O.ops[V],W=R.data;switch(R.op){case "move":H.moveTo(W[0],W[1]);break;case "bcurveTo":H.curveTo(W[0],W[1],W[2],W[3],W[4],W[5]);break;case "lineTo":H.lineTo(W[0],W[1])}}H.end();"fillPath"===O.type&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.maxImageBytes=g.maxImageBytes);null!=g.maxImageSize&&(EditorUi.prototype.maxImageSize=g.maxImageSize);null!=g.shareCursorPosition&&(EditorUi.prototype.shareCursorPosition=g.shareCursorPosition);null!=g.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=g.showRemoteCursors);null!=g.restrictExport&&(DrawioFile.RESTRICT_EXPORT=g.restrictExport)}};Editor.isAutoDarkMode=function(g){return!g&&"auto"==urlParams.dark||Editor.isSettingsEnabled()&&"auto"==mxSettings.settings.darkMode}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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 G=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?G.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(g){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var S=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(g){g=S.apply(this,arguments);var y=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 |
function(){null!=t&&(t(),t=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(T,l,n){C=!1;if(null!=T){if("data:image/"==T.substring(0,11)){var z=T.indexOf(",");0<z&&(T=T.substring(0,z)+";base64,"+T.substring(z+1))}F(T,null,0,0,l,n);c.scrollTop=c.scrollHeight}})});f.setAttribute("id","btnAddImageUrl");f.className="geBtn";d.appendChild(f);this.saveBtnClickHandler=function(T,l,n,z){b.saveLibrary(T,l,n,z)};f=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=t&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
(I?null!=Q.resp&&0<Q.resp.length&&null!=Q.resp[0]?(T=Q.resp[0],I=!1,E()):n():null!=Q.resp&&0<Q.resp.length&&null!=Q.resp[0]?A(Q.resp[0]):z())}}catch(L){console.log(L)}});window.addEventListener("message",x)}})));c(t);t.onversionchange=function(){t.close()}}catch(x){null!=e?e(x):null!=window.console&&console.warn(x)}});q.onerror=e;q.onblocked=function(){}}catch(p){null!=e?e(p):null!=window.console&&console.error(p)}else null!=e&&e(Error("IndexedDB not supported"))}else c(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 |
"geCommentActionLnk";mxUtils.write(Z,V);X.appendChild(Z);mxEvent.addListener(Z,"click",function(Y){R(Y,n);Y.preventDefault();mxEvent.consume(Y)});P.appendChild(X);W&&(X.style.display="none")}function L(){function V(X){R.push(W);if(null!=X.replies)for(var Z=0;Z<X.replies.length;Z++)W=W.nextSibling,V(X.replies[Z])}var R=[],W=g;V(n);return{pdiv:W,replies:R}}function U(V,R,W,X,Z){function Y(){M(da);n.addReply(na,function(za){na.id=za;n.replies.push(na);S(da);W&&W()},function(za){ea();G(da);b.handleError(za, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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[y]=Graph.fontMapping[y]);return g};Editor.prototype.embedExtFonts=function(g){var y=this.graph.getCustomFonts();if(0<y.length){var H=[],O=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var P=mxUtils.bind(this,function(){0==O&&this.embedCssFonts(H.join(""),g)}),V=0;V<y.length;V++)mxUtils.bind(this,function(R,W){Graph.isCssFontUrl(W)?null==this.cachedGoogleFonts[W]?(O++,this.loadUrl(W,mxUtils.bind(this,function(X){this.cachedGoogleFonts[W]=X;H.push(X+"\n");
O--;P()}),mxUtils.bind(this,function(X){O--;H.push("@import url("+W+");\n");P()}))):H.push(this.cachedGoogleFonts[W]+"\n"):H.push('@font-face {font-family: "'+R+'";src: url("'+W+'")}\n')})(y[V].name,y[V].url);P()}else g()};Editor.prototype.addMathCss=function(g){g=g.getElementsByTagName("defs");if(null!=g&&0<g.length)for(var y=document.getElementsByTagName("style"),H=0;H<y.length;H++){var O=mxUtils.getTextContent(y[H]);0>O.indexOf("mxPageSelector")&&0<O.indexOf("MathJax")&&g[0].appendChild(y[H].cloneNode(!0))}}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
u.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 |
function(z){G=z};this.setAutoScroll=function(z){S=z};this.setOpenFill=function(z){J=z};this.setStopClickEnabled=function(z){k=z};this.setSelectInserted=function(z){q=z};this.setSmoothing=function(z){m=z};this.setPerfectFreehandMode=function(z){t=z};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=function(z){p.size=z};this.getBrushSize=function(){return p.size};var x=function(z){e=z;b.getRubberband().setEnabled(!z);b.graphHandler.setSelectEnabled(!z);b.graphHandler.setMoveEnabled(!z); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(V,R,W,X,Z,Y){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(V+Z,R),this.lineTo(V+W-Z,R),this.quadTo(V+W,R,V+W,R+Y),this.lineTo(V+W,R+X-Y),this.quadTo(V+W,R+X,V+W-Z,R+X),this.lineTo(V+Z,R+X),this.quadTo(V,R+X,V,R+X-Y),this.lineTo(V,R+Y),this.quadTo(V,R,V+Z,R))};g.prototype.drawPath=function(V){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),V)}catch(W){}this.passThrough=!1}else if(null!=this.nextShape){for(var R in V)this.nextShape.options[R]=
V[R];V.stroke!=mxConstants.NONE&&null!=V.stroke||delete this.nextShape.options.stroke;V.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};g.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};g.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};g.prototype.fillAndStroke=function(){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 |
y,H,O){for(var P=0;P<O;P++)g=Editor.crcTable[(g^y.charCodeAt(H+P))&255]^g>>>8;return g};Editor.crc32=function(g){for(var y=-1,H=0;H<g.length;H++)y=y>>>8^Editor.crcTable[(y^g.charCodeAt(H))&255];return(y^-1)>>>0};Editor.writeGraphModelToPng=function(g,y,H,O,P){function V(Y,ea){var fa=X;X+=ea;return Y.substring(fa,X)}function R(Y){Y=V(Y,4);return Y.charCodeAt(3)+(Y.charCodeAt(2)<<8)+(Y.charCodeAt(1)<<16)+(Y.charCodeAt(0)<<24)}function W(Y){return String.fromCharCode(Y>>24&255,Y>>16&255,Y>>8&255,Y&255)}
g=g.substring(g.indexOf(",")+1);g=window.atob?atob(g):Base64.decode(g,!0);var X=0;if(V(g,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=P&&P();else if(V(g,4),"IHDR"!=V(g,4))null!=P&&P();else{V(g,17);P=g.substring(0,X);do{var Z=R(g);if("IDAT"==V(g,4)){P=g.substring(0,X-8);"pHYs"==y&&"dpi"==H?(H=Math.round(O/.0254),H=W(H)+W(H)+String.fromCharCode(1)):H=H+String.fromCharCode(0)+("zTXt"==y?String.fromCharCode(0):"")+O;O=4294967295;O=Editor.updateCRC(O,y,0,4);O=Editor.updateCRC(O,
H,0,H.length);P+=W(H.length)+y+H+W(O^4294967295);P+=g.substring(X-8,g.length);break}P+=g.substring(X-8,X-4+Z);V(g,Z);V(g,4)}while(Z);return"data:image/png;base64,"+(window.btoa?btoa(P):Base64.encode(P,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var F=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(g,y){F.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var K=ColorDialog.resetRecentColors; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
O,[L]);var R=e.model.getGeometry(L);null!=R&&(R=R.clone(),R.width=Math.max(R.width,P),R.height=Math.max(R.height,V),e.cellsResized([L],[R],!1));e.setAttributeForCell(L,"mermaidData",JSON.stringify({data:H,config:y.config},null,2))}finally{e.getModel().endUpdate()}},function(O){c.handleError(O)})},null,null,400,220);c.showDialog(U.container,420,300,!0,!0);U.init()};var k=e.cellEditor.startEditing;e.cellEditor.startEditing=function(L,U){try{var g=this.graph.getAttributeForCell(L,"plantUmlData");if(null!=
g)this.editPlantUmlData(L,U,g);else if(g=this.graph.getAttributeForCell(L,"mermaidData"),null!=g)this.editMermaidData(L,U,g);else{var y=e.getCellStyle(L);"1"==mxUtils.getValue(y,"metaEdit","0")?c.showDataDialog(L):k.apply(this,arguments)}}catch(H){c.handleError(H)}};e.getLinkTitle=function(L){return c.getLinkTitle(L)};e.customLinkClicked=function(L){var U=!1;try{c.handleCustomLink(L),U=!0}catch(g){c.handleError(g)}return U};var q=e.parseBackgroundImage;e.parseBackgroundImage=function(L){var U=q.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 |
20;wa.prototype.jettyHeight=10;wa.prototype.redrawPath=function(c,m,u,n,t,C){var D=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));m=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));u=D/2;D=u+D/2;var ha=Math.min(m,t-m),I=Math.min(ha+2*m,t-m);C?(c.moveTo(u,ha),c.lineTo(D,ha),c.lineTo(D,ha+m),c.lineTo(u,ha+m),c.moveTo(u,I),c.lineTo(D,I),c.lineTo(D,I+m),c.lineTo(u,I+m)):(c.moveTo(u,0),c.lineTo(n,0),c.lineTo(n,t),c.lineTo(u,t),c.lineTo(u,I+m),c.lineTo(0,I+
m),c.lineTo(0,I),c.lineTo(u,I),c.lineTo(u,ha+m),c.lineTo(0,ha+m),c.lineTo(0,ha),c.lineTo(u,ha),c.close());c.end()};mxCellRenderer.registerShape("module",wa);mxUtils.extend(Ca,mxCylinder);Ca.prototype.jettyWidth=32;Ca.prototype.jettyHeight=12;Ca.prototype.redrawPath=function(c,m,u,n,t,C){var D=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));m=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));u=D/2;D=u+D/2;var ha=.3*t-m/2,I=.7*t-m/2;C?(c.moveTo(u,ha),c.lineTo(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 |
R.height=p.copiedSize.height,q.getModel().setGeometry(F[K],R))}}finally{q.getModel().endUpdate()}}},null,null,"Alt+Shift+V");this.addAction("copyData",function(){var F=q.getSelectionCell()||q.getModel().getRoot();q.isEnabled()&&null!=F&&(F=F.cloneValue(),null==F||isNaN(F.nodeType)||(p.copiedValue=F))},null,null,"Alt+Shift+B");this.addAction("pasteData",function(F,K){function R(f,k){var v=W.getValue(f);k=f.cloneValue(k);k.removeAttribute("placeholders");null==v||isNaN(v.nodeType)||k.setAttribute("placeholders",
v.getAttribute("placeholders"));null!=F&&mxEvent.isShiftDown(F)||k.setAttribute("label",q.convertValueToString(f));W.setValue(f,k)}F=null!=K?K:F;var W=q.getModel();if(q.isEnabled()&&!q.isSelectionEmpty()&&null!=p.copiedValue){W.beginUpdate();try{var d=q.getEditableCells(q.getSelectionCells());if(0==d.length)R(W.getRoot(),p.copiedValue);else for(K=0;K<d.length;K++)R(d[K],p.copiedValue)}finally{W.endUpdate()}}},null,null,"Alt+Shift+E");this.addAction("delete",function(F,K){F=null!=K?K:F;null!=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 |
mxUtils.bind(this,function(ia){this.spinner.stop();this.handleError(ia)}))})))}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,H,null,1<J,O,v,A,z);J=this.isServices(J)?4<J?390:280:160;this.showDialog(d.container,420,J,!0,!0);d.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(d,f,k,v,z,A){};EditorUi.prototype.pickFolder= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
EditorUi.prototype.initClipboard=function(){var b=this,e=mxClipboard.cut;mxClipboard.cut=function(q){q.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):e.apply(this,arguments);b.updatePasteActionStates()};mxClipboard.copy=function(q){var E=null;if(q.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{E=E||q.getSelectionCells();E=q.getExportableCells(q.model.getTopmostCells(E));for(var M={},T=q.createCellLookup(E),F=q.cloneCells(E,null,M),K=new mxGraphModel,R=K.getChildAt(K.getRoot(),
0),W=0;W<F.length;W++){K.add(R,F[W]);var d=q.view.getState(E[W]);if(null!=d){var f=q.getCellGeometry(F[W]);null!=f&&f.relative&&!K.isEdge(E[W])&&null==T[mxObjectIdentity.get(K.getParent(E[W]))]&&(f.offset=null,f.relative=!1,f.x=d.x/d.view.scale-d.view.translate.x,f.y=d.y/d.view.scale-d.view.translate.y)}}q.updateCustomLinks(q.createCellMapping(M,T),F);mxClipboard.insertCount=1;mxClipboard.setCells(F)}b.updatePasteActionStates();return E};var g=mxClipboard.paste;mxClipboard.paste=function(q){var E= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Da(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function Q(){mxEllipse.call(this)} | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
parseFloat(aa.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;Y.marginLeft=aa.marginLeft||0;Y.marginRight=aa.marginRight||0;Y.marginTop=aa.marginTop||0;Y.marginBottom=aa.marginBottom||0;Y.allowGaps=aa.allowGaps||0;Y.horizontal="1"==mxUtils.getValue(aa,"horizontalRack","0");Y.resizeParent=!1;Y.fill=!0;return Y}return Z.apply(this,arguments)};this.updateGlobalUrlVariables()};var k=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(l,B){return Graph.processFontStyle(k.apply(this,
arguments))};var v=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(l,B,N,Z,U,aa,Y,ka,qa,ra,pa){v.apply(this,arguments);Graph.processFontAttributes(pa)};var z=mxText.prototype.redraw;mxText.prototype.redraw=function(){z.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(l,B,N){function Z(){for(var ya=Y.getSelectionCells(),Oa=[],Qa=0;Qa<ya.length;Qa++)Y.isCellVisible(ya[Qa])&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.rc.generator.ellipse(aa+ka/2,Y+qa/2,ka,qa,this.getStyle(!0,!0)))};l.prototype.roundrect=function(aa,Y,ka,qa,ra,pa){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(aa+ra,Y),this.lineTo(aa+ka-ra,Y),this.quadTo(aa+ka,Y,aa+ka,Y+pa),this.lineTo(aa+ka,Y+qa-pa),this.quadTo(aa+ka,Y+qa,aa+ka-ra,Y+qa),this.lineTo(aa+ra,Y+qa),this.quadTo(aa,Y+qa,aa,Y+qa-pa),this.lineTo(aa,Y+pa),this.quadTo(aa,Y,aa+ra,Y))};l.prototype.drawPath=function(aa){if(0<this.path.length){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 |
d)try{d.close()}catch(O){}if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logEvent({category:"ERROR-LOAD-FILE-"+(null!=d?d.getHash():"none"),action:"message_"+J.message,label:"stack_"+J.stack})}catch(O){}d=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=v?this.fileLoaded(v)||A():A()});f?d():this.handleError(J,mxResources.get("errorLoadingFile"),d,!0,null,null,!0)}else A(); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
GraphViewer.logAncestorFrames=function(){try{if(window.location.ancestorOrigins&&window.location.hostname&&window.location.ancestorOrigins.length&&0<window.location.ancestorOrigins.length){var b=window.location.hostname;b&&1<b.length&&"/"==b.charAt(b.length-1)&&(b=b.substring(0,b.length-1));for(var e="",g=0;g<window.location.ancestorOrigins.length;g++)e+=" -> "+window.location.ancestorOrigins[g];!(b.endsWith(".draw.io")&&1==window.location.ancestorOrigins.length&&window.location.ancestorOrigins[0]&&
window.location.ancestorOrigins[0].endsWith(".atlassian.net"))&&0<window.location.ancestorOrigins.length&&((new Image).src="https://log.diagrams.net/images/1x1.png?src=ViewerAncestorFrames"+("undefined"!==typeof window.EditorUi?"&v="+encodeURIComponent(EditorUi.VERSION):"")+"&data="+encodeURIComponent(e))}}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 |
Z.createElementNS(mxConstants.NS_SVG,"style"):Z.createElement("style");l.setAttribute("type","text/css");mxUtils.setTextContent(l,B);N.appendChild(l)}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(l,B,N){var Z=mxClient.IS_FF?8192:16384;return Math.min(N,Math.min(Z/l,Z/B))};Editor.prototype.exportToCanvas=function(l,B,N,Z,U,aa,Y,ka,qa,ra,pa,wa,Ca,Ba,ya,Oa,Qa,Ta){try{aa=null!=aa?aa:!0;Y=null!=Y?Y:!0;wa= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
1)*B+(0==V.x?da.width*B:0),da.y,1,da.height))?l="col-resize":(0<V.y||0<V.height)&&mxUtils.intersects(S,new mxRectangle(da.x,da.y+(V.y-V.height-1)*B+(0==V.y?da.height:0),da.width,1))&&(l="row-resize")),da=this.view.getState(this.model.getParent(da.cell))}null!=l&&P.setCursor(l)}}}),mouseUp:mxUtils.bind(this,function(S,da){F=E=M=T=null})})}this.cellRenderer.minSvgStrokeWidth=.1;this.cellRenderer.getLabelValue=function(S){var da=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);S.view.graph.isHtmlLabel(S.cell)&&
(1!=S.style.html?da=mxUtils.htmlEntities(da,!1):(S.lastLabelValue!=da&&(S.lastLabelValue=da,S.lastSanitizedLabelValue=Graph.sanitizeHtml(da)),da=S.lastSanitizedLabelValue));return da};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.state.x+(db.width+kb)*la;this.shape.bounds.y=oa.y+(bb==Ua.length-1?0:eb.y*la);this.shape.bounds.height=oa.height-(bb==Ua.length-1?0:(eb.height+eb.y)*la)}this.shape.redraw()}};var Pa=!1;$a.setPosition=function(eb,jb,ib){kb=Math.max(Graph.minTableColumnWidth-db.width,jb.x-eb.x-db.width);Pa=mxEvent.isShiftDown(ib.getEvent());null==lb||Pa||(kb=Math.min(kb,lb.width-Graph.minTableColumnWidth))};$a.execute=function(eb){if(0!=kb)X.setTableColumnWidth(this.state.cell,kb,Pa);else if(!Q.blockDelayedSelection){var jb=
X.getCellAt(eb.getGraphX(),eb.getGraphY())||oa.cell;X.graphHandler.selectCellForEvent(jb,eb)}kb=0};$a.positionChanged=function(){};$a.reset=function(){kb=0};x.push($a)})(ea)}}return null!=x?x.reverse():null};var B=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(x){B.apply(this,arguments);if(null!=this.moveHandles)for(var L=0;L<this.moveHandles.length;L++)null!=this.moveHandles[L]&&(this.moveHandles[L].node.style.visibility=x?"":"hidden");if(null!=this.cornerHandles)for(L= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function W(){mxShape.call(this)}function d(c,m,u,n){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=u;this.strokewidth=null!=n?n:1}function f(){mxActor.call(this)}function k(){mxCylinder.call(this)}function v(){mxCylinder.call(this)}function z(){mxActor.call(this)}function A(){mxActor.call(this)}function H(){mxActor.call(this)}function J(){mxActor.call(this)}function O(){mxActor.call(this)}function G(){mxActor.call(this)}function ja(){mxActor.call(this)}function fa(c,m){this.canvas=c;this.canvas.setLineJoin("round");
this.canvas.setLineCap("round");this.defaultVariation=m;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,fa.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,fa.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,fa.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,fa.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=
mxUtils.bind(this,fa.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,fa.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function ia(){mxRectangleShape.call(this)}function ma(){mxActor.call(this)}function ba(){mxActor.call(this)}function S(){mxActor.call(this)}function da(){mxRectangleShape.call(this)}function P(){mxRectangleShape.call(this)}function V(){mxCylinder.call(this)}function l(){mxShape.call(this)}function B(){mxShape.call(this)}function N(){mxEllipse.call(this)} | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Qa);mxUtils.extend(Ta,mxArrowConnector);Ta.prototype.defaultWidth=10;Ta.prototype.defaultArrowWidth=20;Ta.prototype.getStartArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"startWidth",this.defaultArrowWidth)};Ta.prototype.getEndArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"endWidth",this.defaultArrowWidth)};Ta.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-
1)};mxCellRenderer.registerShape("flexArrow",Ta);mxUtils.extend(ta,mxActor);ta.prototype.size=30;ta.prototype.isRoundable=function(){return!0};ta.prototype.redrawPath=function(c,m,u,n,t){m=Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)));u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,t),new mxPoint(0,m),new mxPoint(n,0),new mxPoint(n,t)],this.isRounded,u,!0);c.end()};mxCellRenderer.registerShape("manualInput", | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.setViewState(b.viewState);g.gridEnabled=g.gridEnabled&&(!this.ui.editor.isChromelessView()||"1"==urlParams.grid);e.graph.fireEvent(new mxEventObject(mxEvent.ROOT));e.fireEvent(new mxEventObject("pageSelected","change",this))}};function ChangePage(b,e,g,p,y){SelectPage.call(this,b,g);this.relatedPage=e;this.index=p;this.previousIndex=null;this.noSelect=y}mxUtils.extend(ChangePage,SelectPage); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=ka){var ta=U.getGlobalVariable;U=this.createTemporaryGraph(U.getStylesheet());for(var Aa,Ea=0;Ea<this.pages.length;Ea++)if(this.pages[Ea].getId()==ka){Aa=this.updatePageRoot(this.pages[Ea]);break}null==Aa&&(Aa=this.currentPage);U.getGlobalVariable=function(Ka){return"page"==Ka?Aa.getName():"pagenumber"==Ka?1:ta.apply(this,arguments)};document.body.appendChild(U.container);U.model.setRoot(Aa.root)}if(null!=G.layerIds){var za= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.prompt=function(b,e,g){b=new FilenameDialog(this,e,mxResources.get("apply"),function(p){g(parseFloat(p))},b);this.showDialog(b.container,300,80,!0,!0);b.init()}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(c,m,u,n){var t="0"!=mxUtils.getValue(m.style,"fixedSize","0"),C=t?ba.prototype.fixedSize:ba.prototype.size;null!=m&&(C=mxUtils.getValue(m.style,"size",C));t&&(C*=m.view.scale);var D=c.x,ha=c.y,I=c.width,ua=c.height,na=c.getCenterX();c=c.getCenterY();m=null!=m?mxUtils.getValue(m.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;m==mxConstants.DIRECTION_EAST?(t=t?Math.max(0,Math.min(I,C)):I*Math.max(0,
Math.min(1,C)),ha=[new mxPoint(D,ha),new mxPoint(D+I-t,ha),new mxPoint(D+I,c),new mxPoint(D+I-t,ha+ua),new mxPoint(D,ha+ua),new mxPoint(D+t,c),new mxPoint(D,ha)]):m==mxConstants.DIRECTION_WEST?(t=t?Math.max(0,Math.min(I,C)):I*Math.max(0,Math.min(1,C)),ha=[new mxPoint(D+t,ha),new mxPoint(D+I,ha),new mxPoint(D+I-t,c),new mxPoint(D+I,ha+ua),new mxPoint(D+t,ha+ua),new mxPoint(D,c),new mxPoint(D+t,ha)]):m==mxConstants.DIRECTION_NORTH?(t=t?Math.max(0,Math.min(ua,C)):ua*Math.max(0,Math.min(1,C)),ha=[new mxPoint(D,
ha+t),new mxPoint(na,ha),new mxPoint(D+I,ha+t),new mxPoint(D+I,ha+ua),new mxPoint(na,ha+ua-t),new mxPoint(D,ha+ua),new mxPoint(D,ha+t)]):(t=t?Math.max(0,Math.min(ua,C)):ua*Math.max(0,Math.min(1,C)),ha=[new mxPoint(D,ha),new mxPoint(na,ha+t),new mxPoint(D+I,ha),new mxPoint(D+I,ha+ua-t),new mxPoint(na,ha+ua),new mxPoint(D,ha+ua-t),new mxPoint(D,ha)]);na=new mxPoint(na,c);n&&(u.x<D||u.x>D+I?na.y=u.y:na.x=u.x);return mxUtils.getPerimeterPoint(ha,na,u)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"chrome-extension://"==Z.substring(0,19)||mxClient.IS_CHROMEAPP||(Z=B.apply(this,arguments)):Z=PROXY_URL+"?url="+encodeURIComponent(Z)}return Z};return l};Editor.createSvgDataUri=function(l){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(l)))};Editor.prototype.convertImageToDataUri=function(l,B){try{var N=!0,Z=window.setTimeout(mxUtils.bind(this,function(){N=!1;B(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(l))mxUtils.get(l,mxUtils.bind(this,function(aa){window.clearTimeout(Z); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
GraphViewer.prototype.crop=function(){var b=this.graph,e=b.getGraphBounds(),g=b.border,p=b.view.scale;b.view.setTranslate(null!=e.x?Math.floor(b.view.translate.x-e.x/p+g):g,null!=e.y?Math.floor(b.view.translate.y-e.y/p+g):g)};GraphViewer.prototype.updateContainerWidth=function(b,e){b.style.width=e+"px"};GraphViewer.prototype.updateContainerHeight=function(b,e){if(this.forceCenter||this.zoomEnabled||!this.autoFit||"BackCompat"==document.compatMode||8==document.documentMode)b.style.height=e+"px"}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxActor);z.prototype.size=30;z.prototype.isRoundable=function(){return!0};z.prototype.redrawPath=function(c,m,u,n,t){m=Math.max(0,Math.min(n,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(m,0),new mxPoint(n,0),new mxPoint(n,t),new mxPoint(0,t),new mxPoint(0,m)],this.isRounded,u,!0);c.end()};mxCellRenderer.registerShape("card",z);mxUtils.extend(A,mxActor);A.prototype.size= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function X(){mxEllipse.call(this)}function ea(){mxEllipse.call(this)}function la(){mxRhombus.call(this)}function oa(){mxEllipse.call(this)}function xa(){mxEllipse.call(this)}function sa(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Fa(){mxActor.call(this)}function Ua(){mxActor.call(this)}function ab(){mxActor.call(this)}function Na(c,m,u,n){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=u;this.strokewidth=null!=n?n:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
k);if(null!=d&&6<d.length)null!=f&&(d=Editor.writeGraphModelToPng(d,"tEXt","mxfile",encodeURIComponent(f))),0<v&&(d=Editor.writeGraphModelToPng(d,"pHYs","dpi",v));else throw{message:mxResources.get("unknownError")};return d};EditorUi.prototype.saveCanvas=function(d,f,k,v,z){var A="jpeg"==k?"jpg":k;v=this.getBaseFilename(v)+(null!=f?".drawio":"")+"."+A;d=this.createImageDataUri(d,f,k,z);this.saveData(v,A,d.substring(d.lastIndexOf(",")+1),"image/"+k,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Actions.prototype.addAction=function(b,e,g,p,y){if("..."==b.substring(b.length-3)){b=b.substring(0,b.length-3);var q=mxResources.get(b)+"..."}else q=mxResources.get(b);return this.put(b,new Action(q,e,g,p,y))};Actions.prototype.put=function(b,e){return this.actions[b]=e};Actions.prototype.get=function(b){return this.actions[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 |
null!=T.ownerSVGElement&&(T=T.ownerSVGElement);var F=this.gridSize*this.view.scale*this.view.gridSteps;F=-Math.round(F-mxUtils.mod(this.view.translate.x*this.view.scale+E,F))+"px "+-Math.round(F-mxUtils.mod(this.view.translate.y*this.view.scale+M,F))+"px";T.style.backgroundPosition=F}};mxGraph.prototype.updatePageBreaks=function(E,M,T){var F=this.view.scale,K=this.view.translate,R=this.pageFormat,W=F*this.pageScale,d=this.view.getBackgroundPageBounds();M=d.width;T=d.height;var f=new mxRectangle(F*
K.x,F*K.y,R.width*W,R.height*W),k=(E=E&&Math.min(f.width,f.height)>this.minPageBreakDist)?Math.ceil(T/f.height)-1:0,v=E?Math.ceil(M/f.width)-1:0,z=d.x+M,A=d.y+T;null==this.horizontalPageBreaks&&0<k&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<v&&(this.verticalPageBreaks=[]);E=mxUtils.bind(this,function(H){if(null!=H){for(var J=H==this.horizontalPageBreaks?k:v,O=0;O<=J;O++){var G=H==this.horizontalPageBreaks?[new mxPoint(Math.round(d.x),Math.round(d.y+(O+1)*f.height)),new mxPoint(Math.round(z),
Math.round(d.y+(O+1)*f.height))]:[new mxPoint(Math.round(d.x+(O+1)*f.width),Math.round(d.y)),new mxPoint(Math.round(d.x+(O+1)*f.width),Math.round(A))];null!=H[O]?(H[O].points=G,H[O].redraw()):(G=new mxPolyline(G,this.pageBreakColor),G.dialect=this.dialect,G.isDashed=this.pageBreakDashed,G.pointerEvents=!1,G.init(this.view.backgroundPane),G.redraw(),H[O]=G)}for(O=J;O<H.length;O++)null!=H[O]&&H[O].destroy();H.splice(J,H.length-J)}});E(this.horizontalPageBreaks);E(this.verticalPageBreaks)};var e=mxGraphHandler.prototype.shouldRemoveCellsFromParent; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(c,m,u){mxShape.call(this);this.line=c;this.stroke=m;this.strokewidth=null!=u?u:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function p(){mxCylinder.call(this)}function y(){mxConnector.call(this)}function q(){mxCylinder.call(this)}function E(){mxActor.call(this)}function M(){mxCylinder.call(this)}function T(){mxCylinder.call(this)}function F(){mxCylinder.call(this)}function K(){mxCylinder.call(this)}function R(){mxShape.call(this)} | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
EditorUi.prototype.setPageVisible=function(b){var e=this.editor.graph,g=mxUtils.hasScrollbars(e.container),p=0,y=0;g&&(p=e.view.translate.x*e.view.scale-e.container.scrollLeft,y=e.view.translate.y*e.view.scale-e.container.scrollTop);e.pageVisible=b;e.pageBreaksVisible=b;e.preferPageSize=b;e.view.validateBackground();if(g){var q=e.getSelectionCells();e.clearSelection();e.setSelectionCells(q)}e.sizeDidChange();g&&(e.container.scrollLeft=e.view.translate.x*e.view.scale-p,e.container.scrollTop=e.view.translate.y*
e.view.scale-y);e.defaultPageVisible=b;this.fireEvent(new mxEventObject("pageViewChanged"))}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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(R,W,d,f){var k=this.actions.get(d);null!=k&&(d=function(){k.isEnabled()&&k.funct.apply(this,arguments)},W?f?y.bindControlShiftKey(R,d):y.bindControlKey(R,d):f?y.bindShiftKey(R,d):y.bindKey(R,d))});var F=this,K=y.escape;y.escape=function(R){K.apply(this,arguments)};y.enter=function(){};y.bindControlShiftKey(36,function(){p.exitGroup()});y.bindControlShiftKey(35,function(){p.enterGroup()});y.bindShiftKey(36,function(){p.home()});y.bindKey(35,function(){p.refresh()});y.bindAction(107, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
D&&"fold"==C)&&c.moveTo(n-I,ha+I):c.moveTo(n,I)};Na.prototype.lineNEInner=function(c,m,u,n,t,C,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==C||ua?c.lineTo(n-I,I):"rounded"==D||"default"==D&&"rounded"==C||"snip"==D||"default"==D&&"snip"==C?c.lineTo(n-I,ha+.5*I):("invRound"==D||"default"==D&&"invRound"==C||"fold"==D||"default"==D&&"fold"==C)&&c.lineTo(n-I,ha+I):c.lineTo(n,I)};Na.prototype.moveNWInner=function(c,m,u,n,t,C,D,ha,I,ua,na){ua||na?!ua&&na?c.moveTo(I,0):ua&&!na?c.moveTo(0,I):"square"==
D||"default"==D&&"square"==C?c.moveTo(I,I):"rounded"==D||"default"==D&&"rounded"==C||"snip"==D||"default"==D&&"snip"==C?c.moveTo(I,ha+.5*I):("invRound"==D||"default"==D&&"invRound"==C||"fold"==D||"default"==D&&"fold"==C)&&c.moveTo(I,ha+I):c.moveTo(0,0)};Na.prototype.lineNWInner=function(c,m,u,n,t,C,D,ha,I,ua,na){ua||na?!ua&&na?c.lineTo(I,0):ua&&!na?c.lineTo(0,I):"square"==D||"default"==D&&"square"==C?c.lineTo(I,I):"rounded"==D||"default"==D&&"rounded"==C||"snip"==D||"default"==D&&"snip"==C?c.lineTo(I, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
L[0].parentNode;null!=L[0].firstChild;)Q.insertBefore(L[0].firstChild,L[0]);Q.removeChild(L[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(x))};Graph.prototype.isCellResizable=function(x){var L=mxGraph.prototype.isCellResizable.apply(this,arguments),Q=this.getCurrentCellStyle(x);return!this.isTableCell(x)&&!this.isTableRow(x)&&(L||"0"!=mxUtils.getValue(Q,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==Q[mxConstants.STYLE_WHITE_SPACE])};Graph.prototype.distributeCells=function(x,L,Q){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 |
x.pointerEvents=!0;return x};Graph.prototype.getSelectedTextBlocks=function(){function x(oa){if(oa.firstChild)return oa.firstChild;for(;oa;){if(oa.nextSibling)return oa.nextSibling;oa=oa.parentNode}}function L(oa){var xa=oa.startContainer,sa=oa.endContainer;oa=oa.commonAncestorContainer;var va=[],Fa;for(Fa=xa.parentNode;Fa&&(va.push(Fa),Fa!=oa);Fa=Fa.parentNode);va.reverse();for(Fa=xa;Fa&&(va.push(Fa),Fa!=sa);Fa=x(Fa));return va}var Q=[this.getSelectedElement()];if(window.getSelection){var X=window.getSelection(); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.selectPage=function(b,e,g){try{if(b!=this.currentPage){var p=this.editor.graph;p.isEditing()&&p.stopEditing(!1);e=null!=e?e:!1;p.isMouseDown=!1;p.reset();var y=p.model.createUndoableEdit();y.ignoreEdit=!0;var q=new SelectPage(this,b,g);q.execute();y.add(q);y.notify();p.tooltipHandler.hide();null!=b.viewState&&null==b.viewState.scrollTop&&(p.selectUnlockedLayer(),this.resetScrollbars(),p.isLightboxView()&&this.lightboxFit(),null!=this.chromelessResize&&(p.container.scrollleft=0,
p.container.scrollTop=0,this.chromelessResize()));e||p.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",y))}}catch(E){this.handleError(E)}};EditorUi.prototype.selectNextPage=function(b){var e=this.currentPage;null!=e&&null!=this.pages&&(e=mxUtils.indexOf(this.pages,e),b?this.selectPage(this.pages[mxUtils.mod(e+1,this.pages.length)]):b||this.selectPage(this.pages[mxUtils.mod(e-1,this.pages.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;this.connectionHandler.setCreateTarget(!1);this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(S,da){return!1};this.alternateEdgeStyle="vertical";null==p&&this.loadStylesheet();var R=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var S=R.apply(this,arguments);if(this.graph.pageVisible){var da=[],P=this.graph.pageFormat,V=this.graph.pageScale,l=P.width*V;P=P.height*V;V=this.graph.view.translate;for(var B=this.graph.view.scale,
N=this.graph.getPageLayout(),Z=0;Z<N.width;Z++)da.push(new mxRectangle(((N.x+Z)*l+V.x)*B,(N.y*P+V.y)*B,l*B,P*B));for(Z=1;Z<N.height;Z++)da.push(new mxRectangle((N.x*l+V.x)*B,((N.y+Z)*P+V.y)*B,l*B,P*B));S=da.concat(S)}return S};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(S,da){return null==S.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(S){this.previewColor="#000000"==this.graph.background?"#ffffff": | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
(Ia&&(fb=new mxPoint(fb.x+I*Ja,fb.y+ua*Ja),t.push(fb)),fb=new mxPoint(fb.x+na*Ga,fb.y+Za*Ga)):(Ia&&(fb=new mxPoint(fb.x+na*Ga,fb.y+Za*Ga),t.push(fb)),fb=new mxPoint(fb.x+I*Ja,fb.y+ua*Ja));t.push(fb)};var fb=ha;null==n&&(n=new mxPoint(ha.x+(D.x-ha.x)/2,ha.y+(D.y-ha.y)/2));c(n.x,n.y,!0);c(D.x,D.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var Cb=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(c,m){if(m==mxEdgeStyle.IsometricConnector){var u=
new mxElbowEdgeHandler(c);u.snapToTerminals=!1;return u}return Cb.apply(this,arguments)};E.prototype.constraints=[];M.prototype.getConstraints=function(c,m,u){c=[];var n=Math.tan(mxUtils.toRadians(30)),t=(.5-n)/2;n=Math.min(m,u/(.5+n));m=(m-n)/2;u=(u-n)/2;c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,m,u+.25*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,m+.5*n,u+n*t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,m+n,u+.25*n));c.push(new mxConnectionConstraint(new mxPoint(0, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
arguments);null!=W&&R&&this.graph.model.isEdge(W.cell)&&null!=W.style&&1!=W.style[mxConstants.STYLE_CURVED]&&this.validEdges.push(W);return W};var g=mxShape.prototype.paint;mxShape.prototype.paint=function(){g.apply(this,arguments);if(null!=this.state&&null!=this.node&&this.state.view.graph.enableFlowAnimation&&this.state.view.graph.model.isEdge(this.state.cell)&&"1"==mxUtils.getValue(this.state.style,"flowAnimation","0")){var K=this.node.getElementsByTagName("path");if(1<K.length){"1"!=mxUtils.getValue(this.state.style,
mxConstants.STYLE_DASHED,"0")&&K[1].setAttribute("stroke-dasharray",8*this.state.view.scale);var R=this.state.view.graph.getFlowAnimationStyle();null!=R&&K[1].setAttribute("class",R.getAttribute("id"))}}};var p=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(K,R){return p.apply(this,arguments)||null!=K.routedPoints&&null!=R.routedPoints&&!mxUtils.equalPoints(R.routedPoints,K.routedPoints)};var y=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Uint8Array.from||(Uint8Array.from=function(){var b=Object.prototype.toString,e=function(p){return"function"===typeof p||"[object Function]"===b.call(p)},g=Math.pow(2,53)-1;return function(p){var y=Object(p);if(null==p)throw new TypeError("Array.from requires an array-like object - not null or undefined");var q=1<arguments.length?arguments[1]:void 0,E;if("undefined"!==typeof q){if(!e(q))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(E=
arguments[2])}var M=Number(y.length);M=isNaN(M)?0:0!==M&&isFinite(M)?(0<M?1:-1)*Math.floor(Math.abs(M)):M;M=Math.min(Math.max(M,0),g);for(var T=e(this)?Object(new this(M)):Array(M),F=0,K;F<M;)K=y[F],T[F]=q?"undefined"===typeof E?q(K,F):q.call(E,K,F):K,F+=1;T.length=M;return T}}());mxConstants.POINTS=1;mxConstants.MILLIMETERS=2;mxConstants.INCHES=3;mxConstants.METERS=4;mxConstants.PIXELS_PER_MM=3.937;mxConstants.PIXELS_PER_INCH=100;mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000"; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
xa),sa,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,"cells",sa))}finally{X.endUpdate()}return la};Graph.prototype.insertImage=function(x,L,Q){if(null!=x&&null!=this.cellEditor.textarea){for(var X=this.cellEditor.textarea.getElementsByTagName("img"),ea=[],la=0;la<X.length;la++)ea.push(X[la]);document.execCommand("insertimage",!1,x);x=this.cellEditor.textarea.getElementsByTagName("img");if(x.length==ea.length+1)for(la=x.length-1;0<=la;la--)if(0==la||x[la]!=ea[la-1]){x[la].setAttribute("width",
L);x[la].setAttribute("height",Q);break}}};Graph.prototype.insertLink=function(x){if(null!=this.cellEditor.textarea)if(0==x.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var L=this.cellEditor.textarea.getElementsByTagName("a"),Q=[],X=0;X<L.length;X++)Q.push(L[X]);document.execCommand("createlink",!1,mxUtils.trim(x));L=this.cellEditor.textarea.getElementsByTagName("a");if(L.length==Q.length+1)for(X=L.length-1;0<=X;X--)if(L[X]!=Q[X-1]){for(L=L[X].getElementsByTagName("a");0<L.length;){for(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 |
y.cellEditor.stopEditing=function(P,V){try{ma.apply(this,arguments),ca()}catch(l){p.handleError(l)}};y.container.setAttribute("tabindex","0");y.container.style.cursor="default";if(window.self===window.top&&null!=y.container.parentNode)try{y.container.focus()}catch(P){}var ba=y.fireMouseEvent;y.fireMouseEvent=function(P,V,l){try{P==mxEvent.MOUSE_DOWN&&this.container.focus(),ba.apply(this,arguments)}catch(B){p.handleError(B)}};var S=y.foldCells;y.foldCells=function(P,V,l,B,N){try{S.apply(this,arguments)}catch(Z){p.handleError(Z)}}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
EditorUi.prototype.createShapePicker=function(b,e,g,p,y,q,E,M,T,F,K){K=null!=K?K:!0;var R=this.editor.graph,W=null;T=null!=T?T:function(k){k=k[0];var v=0,z=0,A=k.geometry;null!=A&&(R.model.isEdge(k)&&(k=A.getTerminalPoint(!1),A=new mxRectangle(0,0,k.x,k.y)),v=A.width/2,z=A.height/2);return new mxPoint(R.snap(Math.round(b/R.view.scale)-R.view.translate.x-v),R.snap(Math.round(e/R.view.scale)-R.view.translate.y-z))};if(null!=E&&0<E.length){var d=this;R=this.editor.graph;W=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 |
EditorUi.prototype.removePage=function(b){try{var e=this.editor.graph,g=mxUtils.indexOf(this.pages,b);if(e.isEnabled()&&0<=g){this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1);e.model.beginUpdate();try{var p=this.currentPage;p==b&&1<this.pages.length?(g==this.pages.length-1?g--:g++,p=this.pages[g]):1>=this.pages.length&&(p=this.insertPage(),e.model.execute(new RenamePage(this,p,mxResources.get("pageWithNumber",[1]))));e.model.execute(new ChangePage(this,b,p))}finally{e.model.endUpdate()}}}catch(y){this.handleError(y)}return b}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
if(null!=y.graphHandler){var v=y.graphHandler.start;y.graphHandler.start=function(){null!=p.hoverIcons&&p.hoverIcons.reset();v.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,function(P){var V=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(P)-V.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(P)-V.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("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 |
DrawioFile.prototype.share=function(){null!=this.ui.drive?this.ui.confirm(mxResources.get("saveItToGoogleDriveToCollaborate",[this.getTitle()]),mxUtils.bind(this,function(){this.ui.pickFolder(App.MODE_GOOGLE,mxUtils.bind(this,function(b){var e=this.ui.editor.graph,g=e.getSelectionCells(),p=e.getViewState(),y=this.ui.currentPage;this.ui.createFile(this.getTitle(),this.ui.getFileData(null,null,null,null,null,null,null,null,this),null,App.MODE_GOOGLE,null,!0,b,null,null,mxUtils.bind(this,function(){this.ui.restoreViewState(y,
p,g);this.ui.actions.get("share").funct()}))}))}),null,mxResources.get("saveToGoogleDrive",null,"Save to Google Drive"),mxResources.get("cancel")):this.ui.alert(mxResources.get("sharingAvailable"),null,380)};DrawioFile.prototype.getHash=function(){return""};DrawioFile.prototype.getId=function(){return""};DrawioFile.prototype.isEditable=function(){return!this.ui.editor.isChromelessView()||this.ui.editor.editable};DrawioFile.prototype.getUi=function(){return this.ui};DrawioFile.prototype.getTitle=function(){return""}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
d.shortcut):E.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(W){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=W?W:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};DiagramFormatPanel.prototype.isMathOptionVisible=function(){return!0};var M=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows(); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
(EditorUi.prototype.showRemoteCursors=l.showRemoteCursors);null!=l.restrictExport&&(DrawioFile.RESTRICT_EXPORT=l.restrictExport)}};Editor.isAutoDarkMode=function(l){return!l&&"auto"==urlParams.dark||Editor.isSettingsEnabled()&&"auto"==mxSettings.settings.darkMode};Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.configureFontCss=function(l){if(null!=l){Editor.prototype.fontCss=l;var B=document.getElementsByTagName("script")[0]; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Graph.prototype.createVertexWipeAnimation=function(b,e){var g=new mxRectangle.fromRectangle(b.shape.bounds);return{execute:mxUtils.bind(this,function(p,y){null!=b.shape&&(y=p/y,e||(y=1-y),b.shape.bounds=new mxRectangle(g.x,g.y,g.width*y,g.height),b.shape.redraw(),0==p&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=y))}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.bounds=g,b.shape.redraw(),null!=b.text&&null!=b.text.node&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Math.min(t,C))};mxCellRenderer.registerShape("umlLifeline",aa);mxUtils.extend(Y,mxShape);Y.prototype.width=60;Y.prototype.height=30;Y.prototype.corner=10;Y.prototype.configurePointerEvents=function(c){var m=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=m&&m!=mxConstants.NONE&&0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(c.pointerEvents=!1)};Y.prototype.getLabelMargins=function(c){return new mxRectangle(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 |
arguments)};this.connectionHandler.insertEdge=function(S,da,P,V,l,B){var N=mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=V&&this.graph.applyNewEdgeStyle(V,[N]);return N};var f=new mxRubberband(this);this.getRubberband=function(){return f};var k=(new Date).getTime(),v=0,z=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var S=this.currentState;z.apply(this,arguments);S!=this.currentState?(k=(new Date).getTime(),v=0):v=(new Date).getTime()-k};var 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 |
K||"undefined"!==typeof jQuery&&g instanceof jQuery||"undefined"!==typeof Elements&&g instanceof Elements;if(R){K=0;for(var W=g.length;K<W;K++)E(g[K],M)}else E(g,M);this.detach=function(){if(R)for(var d=0,f=g.length;d<f;d++)e.detach(g[d]);else e.detach(g)}}};e.detach=function(g){g.resizeSensor&&(g.removeChild(g.resizeSensor),delete g.resizeSensor,delete g.resizedAttached)};window.ResizeSensor=e})(); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
X,x)});mxEvent.consume(Q)}));btn.style.height="12px";btn.style.width="40px";btn.className="geColorBtn";btn.appendChild(L);return btn}function Y(Da,Ma,x,L,Q,X,ea){null!=Ma&&(Ma=Ma.split(","),Ca.push({name:Da,values:Ma,type:x,defVal:L,countProperty:Q,parentRow:X,isDeletable:!0,flipBkg:ea}));btn=mxUtils.button("+",mxUtils.bind(pa,function(la){for(var oa=X,xa=0;null!=oa.nextSibling;)if(oa.nextSibling.getAttribute("data-pName")==Da)oa=oa.nextSibling,xa++;else break;var sa={type:x,parentRow:X,index:xa,
isDeletable:!0,defVal:L,countProperty:Q};xa=ra(Da,"",sa,0==xa%2,ea);Z(Da,L,sa);oa.parentNode.insertBefore(xa,oa.nextSibling);mxEvent.consume(la)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function ka(Da,Ma,x,L,Q,X,ea){if(0<Q){var la=Array(Q);Ma=null!=Ma?Ma.split(","):[];for(var oa=0;oa<Q;oa++)la[oa]=null!=Ma[oa]?Ma[oa]:null!=L?L:"";Ca.push({name:Da,values:la,type:x,defVal:L,parentRow:X,flipBkg:ea,size:Q})}return document.createElement("div")}function qa(Da, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
v.w,v.h,v.title||"",!0,null,!0)))}};EditorUi.prototype.getResource=function(d){return null!=d?d[mxLanguage]||d.main:null};EditorUi.prototype.footerHeight=0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"atlas"==Editor.currentTheme&&(mxClient.link("stylesheet",STYLE_PATH+"/atlas.css"),"undefined"!==typeof Toolbar&&(Toolbar.prototype.unselectedBackground="linear-gradient(rgb(255, 255, 255) 0px, rgb(242, 242, 242) 100%)",
Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=3,EditorUi.prototype.menubarHeight=41,EditorUi.prototype.toolbarHeight=38);"sketch"==Editor.currentTheme&&(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(d,f,k,v,z,A,H){d=new ImageDialog(this,d,f,k,v,z,A,H);this.showDialog(d.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);d.init()}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
g);var q=this.hoverIcons.drag;this.hoverIcons.drag=function(){e.hideShapePicker();q.apply(this,arguments)};var E=this.hoverIcons.execute;this.hoverIcons.execute=function(T,F,K){var R=K.getEvent();this.graph.isCloneEvent(R)||mxEvent.isShiftDown(R)?E.apply(this,arguments):this.graph.connectVertex(T.cell,F,this.graph.defaultEdgeLength,R,null,null,mxUtils.bind(this,function(W,d,f){var k=b.getCompositeParent(T.cell);W=b.getCellGeometry(k);for(K.consume();null!=k&&b.model.isVertex(k)&&null!=W&&W.relative;)cell=
k,k=b.model.getParent(cell),W=b.getCellGeometry(k);window.setTimeout(mxUtils.bind(this,function(){e.showShapePicker(K.getGraphX(),K.getGraphY(),k,mxUtils.bind(this,function(v){f(v);null!=e.hoverIcons&&e.hoverIcons.update(b.view.getState(v))}),F)}),30)}),mxUtils.bind(this,function(W){this.graph.selectCellsForConnectVertex(W,R,this)}))};var M=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(T,F){null!=M&&window.clearTimeout(M);M=window.setTimeout(mxUtils.bind(this,function(){var 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 |
"none")};var aa=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(x,L){aa.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(x,L){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));var Q=this.graph.view.translate,X=this.graph.view.scale,ea=this.roundLength(L.x/X-Q.x);Q=this.roundLength(L.y/X-Q.y);X=this.graph.view.unit;this.hint.innerHTML= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
if(0<T.length){if(null!=this.pageId)for(var F=0;F<T.length;F++)if(this.pageId==T[F].getAttribute("id")){this.currentPage=F;break}var K=this.graph.getGlobalVariable;M=this;this.graph.getGlobalVariable=function(k){var v=T[M.currentPage];return"page"==k?v.getAttribute("name")||"Page-"+(M.currentPage+1):"pagenumber"==k?M.currentPage+1:"pagecount"==k?T.length:K.apply(this,arguments)}}}this.diagrams=[];var R=null;this.selectPage=function(k){this.handlingResize||(this.currentPage=mxUtils.mod(k,this.diagrams.length), | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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);if(null!=d&&6<d.length)null!=f&&(d=Editor.writeGraphModelToPng(d,"tEXt","mxfile",encodeURIComponent(f))),0<v&&(d=Editor.writeGraphModelToPng(d,"pHYs","dpi",v));else throw{message:mxResources.get("unknownError")};return d};EditorUi.prototype.saveCanvas=function(d,f,k,v,z){var A="jpeg"==k?"jpg":k;v=this.getBaseFilename(v)+(null!=f?".drawio":"")+"."+A;d=this.createImageDataUri(d,f,k,z);this.saveData(v,A,d.substring(d.lastIndexOf(",")+1),"image/"+k,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=
urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(d,f){d=new TextareaDialog(this,d,f,null,null,mxResources.get("close"));this.showDialog(d.container,620,460,!0,!0,null,null,null,null,!0);d.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(d,f,k,v, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
EditorUi.prototype.installResizeHandler=function(b,e,g){e&&(b.window.setSize=function(y,q){if(!this.minimized){var E=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;y=Math.min(y,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());q=Math.min(q,E-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});b.window.setLocation=function(y,q){var E=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth,
M=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,T=parseInt(this.div.style.width),F=parseInt(this.div.style.height);y=Math.max(0,Math.min(y,E-T));q=Math.max(0,Math.min(q,M-F));this.getX()==y&&this.getY()==q||mxWindow.prototype.setLocation.apply(this,arguments);e&&!this.minimized&&this.setSize(T,F)};var p=mxUtils.bind(this,function(){var y=b.window.getX(),q=b.window.getY();b.window.setLocation(y,q)});mxEvent.addListener(window,"resize",p);b.destroy=function(){mxEvent.removeListener(window,
"resize",p);b.window.destroy();null!=g&&g()}};function ChangeGridColor(b,e){this.ui=b;this.color=e}ChangeGridColor.prototype.execute=function(){var b=this.ui.editor.graph.view.gridColor;this.ui.setGridColor(this.color);this.color=b};(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);mxCodecRegistry.register(b)})(); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
M=this.getCellGeometry(E);return E};Graph.prototype.isPart=function(E){return"1"==mxUtils.getValue(this.getCurrentCellStyle(E),"part","0")||this.isTableCell(E)||this.isTableRow(E)};Graph.prototype.getCompositeParents=function(E){for(var M=new mxDictionary,T=[],F=0;F<E.length;F++){var K=this.getCompositeParent(E[F]);this.isTableCell(K)&&(K=this.graph.model.getParent(K));this.isTableRow(K)&&(K=this.graph.model.getParent(K));null==K||M.get(K)||(M.put(K,!0),T.push(K))}return T};Graph.prototype.getReferenceTerminal= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"application/font-sfnt";this.mapFontUrl(ra,qa,mxUtils.bind(this,function(pa,wa){this.loadUrl(wa,mxUtils.bind(this,function(Ca){this.cachedFonts[qa]=Ca;Z--;U()}),mxUtils.bind(this,function(Ca){Z--;U()}),!0,null,"data:"+pa+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(N[l].substring(0,aa)),Y)}U()}else B(l)};Editor.prototype.loadFonts=function(l){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(B){this.resolvedFontCss=B;null!=l&&l()})):null!=
l&&l()};Editor.prototype.createGoogleFontCache=function(){var l={},B;for(B in Graph.fontMapping)Graph.isCssFontUrl(B)&&(l[B]=Graph.fontMapping[B]);return l};Editor.prototype.embedExtFonts=function(l){var B=this.graph.getCustomFonts();if(0<B.length){var N=[],Z=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var U=mxUtils.bind(this,function(){0==Z&&this.embedCssFonts(N.join(""),l)}),aa=0;aa<B.length;aa++)mxUtils.bind(this,function(Y,ka){Graph.isCssFontUrl(ka)? | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(c,m,u){mxShape.call(this);this.line=c;this.stroke=m;this.strokewidth=null!=u?u:1;this.updateBoundsFromLine()}function e(){mxSwimlane.call(this)}function g(){mxSwimlane.call(this)}function p(){mxCylinder.call(this)}function y(){mxConnector.call(this)}function q(){mxCylinder.call(this)}function E(){mxActor.call(this)}function M(){mxCylinder.call(this)}function T(){mxCylinder.call(this)}function F(){mxCylinder.call(this)}function K(){mxCylinder.call(this)}function R(){mxShape.call(this)} | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Da(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function Q(){mxEllipse.call(this)} | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
EditorUi.prototype.getImageForPage=function(b,e,g){g=null!=g?g:this.editor.graph;var p=g.getGlobalVariable,y=this.createTemporaryGraph(g.getStylesheet());y.defaultPageBackgroundColor=g.defaultPageBackgroundColor;y.shapeBackgroundColor=g.shapeBackgroundColor;y.shapeForegroundColor=g.shapeForegroundColor;var q=this.getPageIndex(null!=e?e:this.currentPage);y.getGlobalVariable=function(M){return"pagenumber"==M?q+1:"page"==M&&null!=e?e.getName():p.apply(this,arguments)};document.body.appendChild(y.container);
this.updatePageRoot(b);y.model.setRoot(b.root);b=Graph.foreignObjectWarningText;Graph.foreignObjectWarningText="";g=y.getSvg(null,null,null,null,null,null,null,null,null,null,null,!0);var E=y.getGraphBounds();document.body.removeChild(y.container);Graph.foreignObjectWarningText=b;return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(g)),E.width,E.height,E.x,E.y)}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
k&&k(),ba(),mxEvent.consume(da)):S()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(fa.style,"transform",J)}),ja/2);window.setTimeout(S,z?4E3:3E4);G=!0}return G};EditorUi.prototype.setCurrentFile=function(d){null!=d&&(d.opened=new Date);this.currentFile=d};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(d,f,k,v){d=d.toDataURL("image/"+ | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
N.push(U[Y]);B=aa}else return[]}return N};Graph.prototype.getTagsForCells=function(l){for(var B=[],N={},Z=0;Z<l.length;Z++){var U=this.getTagsForCell(l[Z]);if(0<U.length){U=U.split(" ");for(var aa=0;aa<U.length;aa++)null==N[U[aa]]&&(N[U[aa]]=!0,B.push(U[aa]))}}return B};Graph.prototype.getTagsForCell=function(l){return this.getAttributeForCell(l,"tags","")};Graph.prototype.addTagsForCells=function(l,B){if(0<l.length&&0<B.length){this.model.beginUpdate();try{for(var N=0;N<l.length;N++){for(var Z=this.getTagsForCell(l[N]), | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function Z(){mxShape.call(this)}function U(){mxShape.call(this)}function aa(){mxRectangleShape.call(this)}function Y(){mxShape.call(this)}function ka(){mxShape.call(this)}function qa(){mxShape.call(this)}function ra(){mxShape.call(this)}function pa(){mxShape.call(this)}function wa(){mxCylinder.call(this)}function Ca(){mxCylinder.call(this)}function Ba(){mxRectangleShape.call(this)}function ya(){mxDoubleEllipse.call(this)}function Oa(){mxDoubleEllipse.call(this)}function Qa(){mxArrowConnector.call(this); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxGraphView.prototype.stateValidated=function(l){null!=l.shape&&this.redrawEnumerationState(l);return ja.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(l){l=decodeURIComponent(mxUtils.getValue(l.style,"enumerateValue",""));""==l&&(l=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(l)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(l){var B="1"==mxUtils.getValue(l.style, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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)this.editMermaidData(P,V,l);else{var B=f.getCellStyle(P);"1"==mxUtils.getValue(B,"metaEdit","0")?d.showDataDialog(P):k.apply(this,arguments)}}catch(N){d.handleError(N)}};f.getLinkTitle=function(P){return d.getLinkTitle(P)};f.customLinkClicked=function(P){var V=!1;try{d.handleCustomLink(P),V=!0}catch(l){d.handleError(l)}return V};var v=f.parseBackgroundImage;f.parseBackgroundImage=function(P){var V=v.apply(this,arguments);null!=V&&null!=V.src&&Graph.isPageLink(V.src)&&(V={originalSrc:V.src});
return V};var z=f.setBackgroundImage;f.setBackgroundImage=function(P){null!=P&&null!=P.originalSrc&&(P=d.createImageForPageLink(P.originalSrc,d.currentPage,this));z.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){f.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){f.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,function(P,V){P=null!=f.backgroundImage?f.backgroundImage.originalSrc: | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
y.cellEditor.stopEditing=function(P,V){try{ma.apply(this,arguments),ca()}catch(l){p.handleError(l)}};y.container.setAttribute("tabindex","0");y.container.style.cursor="default";if(window.self===window.top&&null!=y.container.parentNode)try{y.container.focus()}catch(P){}var ba=y.fireMouseEvent;y.fireMouseEvent=function(P,V,l){try{P==mxEvent.MOUSE_DOWN&&this.container.focus(),ba.apply(this,arguments)}catch(B){p.handleError(B)}};var S=y.foldCells;y.foldCells=function(P,V,l,B,N){try{S.apply(this,arguments)}catch(Z){p.handleError(Z)}}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxConstants.HANDLE_STROKECOLOR)};var Ca=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(x,L,Q,X){X=L==mxEvent.ROTATION_HANDLE?HoverIcons.prototype.rotationHandle:L==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:X;return Ca.apply(this,arguments)};var Ba=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(x){if(null!=x&&1==x.length){var L=this.graph.getModel(),Q=L.getParent(x[0]),X=this.graph.getCellGeometry(x[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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.