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 |
---|---|---|---|---|---|---|---|
funtionName:"getLocalStorageFile",functionArgs:[S]}),"*"):ia()}),ia)}}catch(da){console.log(da)}}),ba=mxUtils.bind(this,function(S){try{this.setDatabaseItem(null,[{title:S.title,size:S.data.length,lastModified:Date.now(),type:S.isLib?"L":"F"},{title:S.title,data:S.data}],ia,ia,["filesInfo","files"])}catch(da){console.log(da)}});H=mxUtils.bind(this,function(S){try{if(S.source==J.contentWindow){var da={};try{da=JSON.parse(S.data)}catch(P){}"init"==da.event?(J.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}), | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.getSwimlaneAt=function(b,e,g){var p=mxGraph.prototype.getSwimlaneAt.apply(this,arguments);this.isCellLocked(p)&&(p=null);return p};Graph.prototype.isCellFoldable=function(b){var e=this.getCurrentCellStyle(b);return this.foldingEnabled&&"0"!=mxUtils.getValue(e,mxConstants.STYLE_RESIZABLE,"1")&&("1"==e.treeFolding||!this.isCellLocked(b)&&(this.isContainer(b)&&"0"!=e.collapsible||!this.isContainer(b)&&"1"==e.collapsible))}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.fileSaved=function(b,e,g,p,y){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;var q=this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(q),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=g&&g()):this.sync.fileSaved(q,e,g,p,y)}catch(T){this.invalidChecksum=this.inConflictState=
!0;this.descriptorChanged();null!=p&&p(T);try{if(this.errorReportsEnabled)this.sendErrorReport("Error in fileSaved",null,T);else{var E=this.getCurrentUser(),M=null!=E?E.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),M,T)}}catch(F){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(T){this.descriptorChanged(),null!=p&&p(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 |
DrawioFile.prototype.saveFile=function(b,e,g,p){};DrawioFile.prototype.getFileUrl=function(){return null};DrawioFile.prototype.getFolderUrl=function(b){return null};DrawioFile.prototype.getPublicUrl=function(b){b(null)};DrawioFile.prototype.isRestricted=function(){return DrawioFile.RESTRICT_EXPORT};DrawioFile.prototype.isModified=function(){return this.modified};DrawioFile.prototype.getShadowModified=function(){return this.shadowModified}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
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=
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 |
!0:mxCellMarker.prototype.intersects.apply(E,arguments)});return E};mxGraphView.prototype.createBackgroundPageShape=function(E){return new mxRectangleShape(E,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var E=this.getGraphBounds(),M=0<E.width?E.x/this.scale-this.translate.x:0,T=0<E.height?E.y/this.scale-this.translate.y:0,F=this.graph.pageFormat,K=this.graph.pageScale,R=F.width*K;F=F.height*K;K=Math.floor(Math.min(0,M)/R);var W=Math.floor(Math.min(0,
T)/F);return new mxRectangle(this.scale*(this.translate.x+K*R),this.scale*(this.translate.y+W*F),this.scale*(Math.ceil(Math.max(1,M+E.width/this.scale)/R)-K)*R,this.scale*(Math.ceil(Math.max(1,T+E.height/this.scale)/F)-W)*F)};var p=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(E,M){p.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.showBackgroundImageDialog=function(b,e){b=null!=b?b:mxUtils.bind(this,function(p){p=new ChangePageSetup(this,null,p);p.ignoreColor=!0;this.editor.graph.model.execute(p)});var g=mxUtils.prompt(mxResources.get("backgroundImage"),null!=e?e.src:"");null!=g&&0<g.length?(e=new Image,e.onload=function(){b(new mxImage(g,e.width,e.height),!1)},e.onerror=function(){b(null,!0);mxUtils.alert(mxResources.get("fileNotFound"))},e.src=g):b(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 |
Graph.prototype.getCommonStyle=function(E){for(var M={},T=0;T<E.length;T++){var F=this.view.getState(E[T]);null!=F&&this.mergeStyle(F.style,M,0==T)}return M};Graph.prototype.mergeStyle=function(E,M,T){if(null!=E){var F={},K;for(K in E){var R=E[K];null!=R&&(F[K]=!0,null==M[K]&&T?M[K]=R:M[K]!=R&&delete M[K])}for(K in M)F[K]||delete M[K]}};Graph.prototype.getStartEditingCell=function(E,M){M=this.getCellStyle(E);M=parseInt(mxUtils.getValue(M,mxConstants.STYLE_STARTSIZE,0));this.isTable(E)&&(!this.isSwimlane(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 instanceof mxValueChange&&null!=x.cell&&null!=x.cell.value&&"object"==typeof x.cell.value&&this.invalidateDescendantsWithPlaceholders(x.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(x){x=this.model.getDescendants(x);if(0<x.length)for(var L=0;L<x.length;L++){var Q=this.view.getState(x[L]);null!=Q&&null!=Q.shape&&null!=Q.shape.stencil&&this.stencilHasPlaceholders(Q.shape.stencil)?this.removeStateForCell(x[L]):this.isReplacePlaceholders(x[L])&&this.view.invalidate(x[L],!1,!1)}}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,p,y,q){DrawioFile.call(this,b,e);this.title=g;this.mode=p?null:App.MODE_DEVICE;this.fileHandle=y;this.desc=q};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
EditorUi.parsePng=function(b,e,g){function p(M,T){var F=q;q+=T;return M.substring(F,q)}function y(M){M=p(M,4);return M.charCodeAt(3)+(M.charCodeAt(2)<<8)+(M.charCodeAt(1)<<16)+(M.charCodeAt(0)<<24)}var q=0;if(p(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=g&&g();else if(p(b,4),"IHDR"!=p(b,4))null!=g&&g();else{p(b,17);do{g=y(b);var E=p(b,4);if(null!=e&&e(q-8,E,g))break;value=p(b,g);p(b,4);if("IEND"==E)break}while(g)}};mxUtils.extend(EditorUi,mxEventSource); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.synchronizeFile=function(b,e){if(this.savingFile)null!=e&&e({message:mxResources.get("busy")});else if(null!=this.sync){var g=!0,p=window.setTimeout(mxUtils.bind(this,function(){g=!1;null!=e&&e({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.synchronizeFile(b,e)})})}),this.ui.timeout);g&&this.sync.fileChanged(mxUtils.bind(this,function(y){window.clearTimeout(p);this.sync.cleanup(b,e,y)}),e,function(){return!g})}else this.updateFile(b,
e)}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};l.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};l.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=
this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(aa){return new l(aa,Editor.createRoughCanvas(aa),this)};var B=mxShape.prototype.createHandJiggle; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.width/e),g.getElementsByTagName("svg")[0].setAttribute("height",K.height/p))}catch(R){}finally{document.body.removeChild(g)}}b=Editor.createSvgDataUri(mxUtils.getXml(q[0]))}}}catch(R){}return b};Graph.stripQuotes=function(b){null!=b&&("'"==b.charAt(0)&&(b=b.substring(1)),"'"==b.charAt(b.length-1)&&(b=b.substring(0,b.length-1)),'"'==b.charAt(0)&&(b=b.substring(1)),'"'==b.charAt(b.length-1)&&(b=b.substring(0,b.length-1)));return b}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
!0;this.indent=2;this.rectOutline="single"}function bb(){mxConnector.call(this)}function $a(c,m,u,n,t,C,D,ha,I,ua){D+=I;var na=n.clone();n.x-=t*(2*D+I);n.y-=C*(2*D+I);t*=D+I;C*=D+I;return function(){c.ellipse(na.x-t-D,na.y-C-D,2*D,2*D);ua?c.fillAndStroke():c.stroke()}}mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var c=null;if(null!=this.line)for(var m=0;m<this.line.length;m++){var u=this.line[m];null!=u&&(u=new mxRectangle(u.x,u.y,this.strokewidth,this.strokewidth),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 |
b,g);this.replaceDefaultColor(e,mxConstants.STYLE_LABEL_BORDERCOLOR,g,b);this.replaceDefaultColor(e,mxConstants.STYLE_SWIMLANE_FILLCOLOR,b,g);this.replaceDefaultColor(e,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,b,g)}return e};Graph.prototype.replaceDefaultColor=function(b,e,g,p){null!=b&&"default"==b[e]&&null!=g&&(b[e]=this.getDefaultColor(b,e,g,p))};Graph.prototype.getDefaultColor=function(b,e,g,p){e="default"+e.charAt(0).toUpperCase()+e.substring(1);"invert"==b[e]&&(g=p);return g}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
sa))}}finally{this.graph.model.endUpdate()}}else oa=new mxRectangle(this.x,this.y,this.width,this.height),this.graph.selectRegion(oa,L.getEvent());L.consume()}}};mxRubberband.prototype.mouseMove=function(x,L){if(!L.isConsumed()&&null!=this.first){var Q=mxUtils.getScrollOrigin(this.graph.container);x=mxUtils.getOffset(this.graph.container);Q.x-=x.x;Q.y-=x.y;x=L.getX()+Q.x;Q=L.getY()+Q.y;var X=this.first.x-x,ea=this.first.y-Q,la=this.graph.tolerance;if(null!=this.div||Math.abs(X)>la||Math.abs(ea)>la)null==
this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(x,Q),this.isSpaceEvent(L)?(x=this.x+this.width,Q=this.y+this.height,X=this.graph.view.scale,mxEvent.isAltDown(L.getEvent())||(this.width=this.graph.snap(this.width/X)*X,this.height=this.graph.snap(this.height/X)*X,this.graph.isGridEnabled()||(this.width<this.graph.tolerance&&(this.width=0),this.height<this.graph.tolerance&&(this.height=0)),this.x<this.first.x&&(this.x=x-this.width),this.y<this.first.y&&(this.y=Q-this.height)),
this.div.style.borderStyle="dashed",this.div.style.backgroundColor="white",this.div.style.left=this.x+"px",this.div.style.top=this.y+"px",this.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHeight+"px",this.div.style.borderWidth=0>=this.width?"0px 1px 0px 0px":"0px 1px 0px 1px",null==this.secondDiv&&(this.secondDiv=this.div.cloneNode(!0),this.div.parentNode.appendChild(this.secondDiv)),this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+
"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor="",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),L.consume()}};var ka=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){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 |
GraphViewer.getElementsByClassName=function(b){if(document.getElementsByClassName){var e=document.getElementsByClassName(b);b=[];for(var g=0;g<e.length;g++)b.push(e[g]);return b}var p=document.getElementsByTagName("*");e=[];for(g=0;g<p.length;g++){var y=p[g].className;null!=y&&0<y.length&&(y=y.split(" "),0<=mxUtils.indexOf(y,b)&&e.push(p[g]))}return e}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
(S="1"==f.getCurrentCellStyle(ba).treeMoving);return S}function q(ba){var S=!1;null!=ba&&(ba=k.getParent(ba),S=f.view.getState(ba),S="tree"==(null!=S?S.style:f.getCellStyle(ba)).containerType);return S}function E(ba){var S=!1;null!=ba&&(ba=k.getParent(ba),S=f.view.getState(ba),f.view.getState(ba),S=null!=(null!=S?S.style:f.getCellStyle(ba)).childLayout);return S}function M(ba){ba=f.view.getState(ba);if(null!=ba){var S=f.getIncomingTreeEdges(ba.cell);if(0<S.length&&(S=f.view.getState(S[0]),null!=S&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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 |
Editor=function(b,e,g,p,y){mxEventSource.call(this);this.chromeless=null!=b?b:this.chromeless;this.initStencilRegistry();this.graph=p||this.createGraph(e,g);this.editable=null!=y?y:!b;this.undoManager=this.createUndoManager();this.status="";this.getOrCreateFilename=function(){return this.filename||mxResources.get("drawing",[Editor.pageCounter])+".xml"};this.getFilename=function(){return this.filename};this.setStatus=function(q,E){this.status=q;this.statusFunction=E;this.fireEvent(new mxEventObject("statusChanged"))}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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""!=x};mxCellEditor.prototype.insertTab=function(x){var L=this.textarea.ownerDocument.defaultView.getSelection(),Q=L.getRangeAt(0),X="\t";if(null!=x)for(X="";0<x;)X+=" ",x--;x=document.createElement("span");x.style.whiteSpace="pre";x.appendChild(document.createTextNode(X));Q.insertNode(x);Q.setStartAfter(x);Q.setEndAfter(x);L.removeAllRanges();L.addRange(Q)};mxCellEditor.prototype.alignText=function(x,L){var Q=null!=L&&mxEvent.isShiftDown(L);if(Q||null!=window.getSelection&&null!=window.getSelection().containsNode){var X= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(){return S.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};var da=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(x){return x.tableHandle||da.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=function(){var x=0;this.graph.isTableRow(this.state.cell)?x=1:this.graph.isTableCell(this.state.cell)&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.spacing=0}function Ta(){mxArrowConnector.call(this);this.spacing=0}function ta(){mxActor.call(this)}function Aa(){mxRectangleShape.call(this)}function Ea(){mxActor.call(this)}function za(){mxActor.call(this)}function Va(){mxActor.call(this)}function La(){mxActor.call(this)}function Ka(){mxActor.call(this)}function cb(){mxActor.call(this)}function Da(){mxActor.call(this)}function Ma(){mxActor.call(this)}function x(){mxActor.call(this)}function L(){mxActor.call(this)}function Q(){mxEllipse.call(this)} | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
GraphViewer.logAncestorFrames()}catch(e){}};GraphViewer.cachedUrls={};GraphViewer.getUrl=function(b,e,g){if(null!=GraphViewer.cachedUrls[b])e(GraphViewer.cachedUrls[b]);else{var p=null!=navigator.userAgent&&0<navigator.userAgent.indexOf("MSIE 9")?new XDomainRequest:new XMLHttpRequest;p.open("GET",b);p.onload=function(){e(null!=p.getText?p.getText():p.responseText)};p.onerror=g;p.send()}};GraphViewer.resizeSensorEnabled=!0;GraphViewer.useResizeObserver=!0;GraphViewer.useResizeSensor=!0; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
null==b?(F.style.border="1px solid #c0c0c0",F.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",q)):(e.style.display="none",g.style.display="none");var K=this;T.getImageFromBundles=function(W){return K.getImageUrl(W)};var R=y.createTemporaryGraph;y.createTemporaryGraph=function(){var W=R.apply(this,arguments);W.getImageFromBundles=function(d){return K.getImageUrl(d)};return W};this.graphConfig.move&&(T.isMoveCellsEvent=function(W){return!0});mxUtils.setPrefixedStyle(F.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 |
!1,V=function(){P||(P=!0,window.setTimeout(function(){var l=y.getSelectedEditingElement();null!=l&&(l=mxUtils.getCurrentStyle(l),null!=l&&null!=p.toolbar&&(p.toolbar.setFontName(Graph.stripQuotes(l.fontFamily)),p.toolbar.setFontSize(parseInt(l.fontSize))));P=!1},0))};mxEvent.addListener(y.cellEditor.textarea,"input",V);mxEvent.addListener(y.cellEditor.textarea,"touchend",V);mxEvent.addListener(y.cellEditor.textarea,"mouseup",V);mxEvent.addListener(y.cellEditor.textarea,"keyup",V);V()}};var ma=y.cellEditor.stopEditing; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Ra.shape.node.parentNode.firstChild);Ra.redraw=function(){if(null!=this.shape){this.shape.stroke=0==lb?mxConstants.NONE:xa.stroke;if(this.shape.constructor==V)this.shape.line=L(Na[bb],0,lb),this.shape.updateBoundsFromLine();else{var Pa=X.getActualStartSize(oa.cell,!0);this.shape.bounds.height=1;this.shape.bounds.y=this.state.y+this.state.height+lb*la;this.shape.bounds.x=oa.x+(bb==Fa.length-1?0:Pa.x*la);this.shape.bounds.width=oa.width-(bb==Fa.length-1?0:Pa.width+Pa.x+la)}this.shape.redraw()}};var kb= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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 |
function(){T&&b.hideDialog();null!=y&&y()});d.className="geBtn";g.appendChild(d);null!=E&&(p=mxUtils.button(E,function(){T&&b.hideDialog();null!=M&&M()}),p.className="geBtn gePrimaryBtn",g.appendChild(p));this.init=function(){d.focus()};R.appendChild(g);this.container=R},PrintDialog=function(b,e){this.create(b,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 |
B);mxUtils.extend(N,mxEllipse);N.prototype.paintVertexShape=function(c,m,u,n,t){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.begin();c.moveTo(m+n/8,u+t);c.lineTo(m+7*n/8,u+t);c.end();c.stroke()};mxCellRenderer.registerShape("umlEntity",N);mxUtils.extend(Z,mxShape);Z.prototype.paintVertexShape=function(c,m,u,n,t){c.translate(m,u);c.begin();c.moveTo(n,0);c.lineTo(0,t);c.moveTo(0,0);c.lineTo(n,t);c.end();c.stroke()};mxCellRenderer.registerShape("umlDestroy",Z);mxUtils.extend(U,mxShape); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(l,B,N,Z,U,aa,Y,ka,qa,ra){if(null!=N&&null==mxMarker.markers[N]){var pa=this.getPackageForType(N);null!=pa&&mxStencilRegistry.getStencil(pa)}return ba.apply(this,arguments)};var S=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(l,B,N,Z,U,aa){"1"==mxUtils.getValue(B.style,"lineShape",null)&&l.setFillColor(mxUtils.getValue(B.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return S.apply(this,arguments)};PrintDialog.prototype.create=function(l,B){function N(){Ca.value= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Graph.prototype.fitWindow=function(b,e){e=null!=e?e:10;var g=this.container.clientWidth-e,p=this.container.clientHeight-e;this.zoomTo(Math.floor(20*Math.min(g/b.width,p/b.height))/20);if(mxUtils.hasScrollbars(this.container)){var y=this.view.translate;this.container.scrollTop=(b.y+y.y)*this.view.scale-Math.max((p-b.height*this.view.scale)/2+e/2,0);this.container.scrollLeft=(b.x+y.x)*this.view.scale-Math.max((g-b.width*this.view.scale)/2+e/2,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 |
try{this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified()),0==this.ui.pages.length&&this.ui.pages.push(this.ui.createPage()),0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0)}finally{M.container.style.visibility="";M.model.endUpdate();M.cellRenderer.redraw=R;this.changeListenerEnabled=T;g||(y.history=q,y.indexOfNextAdd=E,y.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)K!=M.mathEnabled?
(this.ui.editor.updateGraphComponents(),M.refresh()):(F!=M.foldingEnabled?M.view.revalidate():M.view.validate(),M.sizeDidChange());null!=this.sync&&this.isRealtime()&&!p&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages));this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",[this],"patches",b,"resolver",e,"undoable",g)}return b}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Graph.prototype.replaceDefaultColors=function(b,e){if(null!=e){b=mxUtils.hex2rgb(this.shapeBackgroundColor);var g=mxUtils.hex2rgb(this.shapeForegroundColor);this.replaceDefaultColor(e,mxConstants.STYLE_FONTCOLOR,g,b);this.replaceDefaultColor(e,mxConstants.STYLE_FILLCOLOR,b,g);this.replaceDefaultColor(e,mxConstants.STYLE_GRADIENTCOLOR,g,b);this.replaceDefaultColor(e,mxConstants.STYLE_STROKECOLOR,g,b);this.replaceDefaultColor(e,mxConstants.STYLE_IMAGE_BORDER,g,b);this.replaceDefaultColor(e,mxConstants.STYLE_IMAGE_BACKGROUND,
b,g);this.replaceDefaultColor(e,mxConstants.STYLE_LABEL_BORDERCOLOR,g,b);this.replaceDefaultColor(e,mxConstants.STYLE_SWIMLANE_FILLCOLOR,b,g);this.replaceDefaultColor(e,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,b,g)}return e};Graph.prototype.replaceDefaultColor=function(b,e,g,p){null!=b&&"default"==b[e]&&null!=g&&(b[e]=this.getDefaultColor(b,e,g,p))};Graph.prototype.getDefaultColor=function(b,e,g,p){e="default"+e.charAt(0).toUpperCase()+e.substring(1);"invert"==b[e]&&(g=p);return g}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
0;v^=f}return v};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(d,f,k,v,z,A,H){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(d){null==d&&(d=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
t);else if("square"==D||"default"==D&&"square"==C)c.lineTo(I,t-I);else if("rounded"==D||"default"==D&&"rounded"==C)c.arcTo(ha-.5*I,ha-.5*I,0,0,0,ha+.5*I,t-I);else if("invRound"==D||"default"==D&&"invRound"==C)c.arcTo(ha+I,ha+I,0,0,1,ha+I,t-I);else if("snip"==D||"default"==D&&"snip"==C)c.lineTo(ha+.5*I,t-I);else if("fold"==D||"default"==D&&"fold"==C)c.lineTo(I+ha,t-ha-I),c.lineTo(I+ha,t-I)};Na.prototype.moveSWInner=function(c,m,u,n,t,C,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==C?c.moveTo(I,
t-I):"rounded"==D||"default"==D&&"rounded"==C||"snip"==D||"default"==D&&"snip"==C?c.moveTo(I,t-ha-.5*I):("invRound"==D||"default"==D&&"invRound"==C||"fold"==D||"default"==D&&"fold"==C)&&c.moveTo(I,t-ha-I):c.moveTo(0,t-I)};Na.prototype.lineSWInner=function(c,m,u,n,t,C,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==C?c.lineTo(I,t-I):"rounded"==D||"default"==D&&"rounded"==C||"snip"==D||"default"==D&&"snip"==C?c.lineTo(I,t-ha-.5*I):("invRound"==D||"default"==D&&"invRound"==C||"fold"==D||"default"== | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
null,!0)}else this.graph.openLink(this.getEditBlankUrl(e)+"#R"+encodeURIComponent(b))};Editor.prototype.createGraph=function(b,e){b=new Graph(null,e,null,null,b);b.transparentBackground=!1;var g=b.isCssTransformsSupported,p=this;b.isCssTransformsSupported=function(){return g.apply(this,arguments)&&(!p.chromeless||!mxClient.IS_SF)};this.chromeless||(b.isBlankLink=function(y){return!this.isExternalProtocol(y)});return b}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Oa.push(ya[Qa]);Y.setSelectionCells(Oa)}function U(ya){Y.setHiddenTags(ya?[]:ka.slice());Z();Y.refresh()}function aa(ya,Oa){ra.innerText="";if(0<ya.length){var Qa=document.createElement("table");Qa.setAttribute("cellpadding","2");Qa.style.boxSizing="border-box";Qa.style.tableLayout="fixed";Qa.style.width="100%";var Ta=document.createElement("tbody");if(null!=ya&&0<ya.length)for(var ta=0;ta<ya.length;ta++)(function(Aa){function Ea(){var Da=Y.getCellsForTags([Aa],null,null,!0);Y.isEnabled()?Y.setSelectionCells(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 |
"fold"==C)&&c.lineTo(ha,0);else c.lineTo(0,0)};Na.prototype.paintTop=function(c,m,u,n,t,C,D,ha,I){"square"==D||"default"==D&&"square"==C||!I?c.lineTo(n,0):c.lineTo(n-ha,0)};Na.prototype.paintNE=function(c,m,u,n,t,C,D,ha,I){if(I)if("rounded"==D||"default"==D&&"rounded"==C||"invRound"==D||"default"==D&&"invRound"==C){m=0;if("rounded"==D||"default"==D&&"rounded"==C)m=1;c.arcTo(ha,ha,0,0,m,n,ha)}else("snip"==D||"default"==D&&"snip"==C||"fold"==D||"default"==D&&"fold"==C)&&c.lineTo(n,ha);else c.lineTo(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 |
(this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus()))}),0)))};EditorUi.prototype.ctrlEnter=function(){var b=this.editor.graph;if(b.isEnabled())try{for(var e=b.getSelectionCells(),g=new mxDictionary,p=[],y=0;y<e.length;y++){var q=b.isTableCell(e[y])?b.model.getParent(e[y]):e[y];null==q||g.get(q)||(g.put(q,!0),p.push(q))}b.setSelectionCells(b.duplicateCells(p,!1))}catch(E){this.handleError(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 |
EditorUi.prototype.showImageDialog=function(b,e,g,p){p=this.editor.graph.cellEditor;var y=p.saveSelection(),q=mxUtils.prompt(b,e);p.restoreSelection(y);if(null!=q&&0<q.length){var E=new Image;E.onload=function(){g(q,E.width,E.height)};E.onerror=function(){g(null);mxUtils.alert(mxResources.get("fileNotFound"))};E.src=q}else g(null)};EditorUi.prototype.showLinkDialog=function(b,e,g){b=new LinkDialog(this,b,e,g);this.showDialog(b.container,420,90,!0,!0);b.init()}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
ta);mxUtils.extend(Aa,mxRectangleShape);Aa.prototype.dx=20;Aa.prototype.dy=20;Aa.prototype.isHtmlAllowed=function(){return!1};Aa.prototype.paintForeground=function(c,m,u,n,t){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var C=0;if(this.isRounded){var D=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;C=Math.max(C,Math.min(n*D,t*D))}D=Math.max(C,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));C=Math.max(C,Math.min(t, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
S.y,S.width,S.height,null,null,P,null,!0);if(this.isToggleEvent(da))for(P=0;P<S.length;P++)this.selectCellForEvent(S[P],da);else this.selectCellsForEvent(S,da);return S};var ca=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(S,da,P){return this.graph.isCellSelected(S)?!1:ca.apply(this,arguments)};var ia=this.updateMouseEvent;this.updateMouseEvent=function(S){S=ia.apply(this,arguments);null!=S.state&&this.isCellLocked(this.getLayerForCell(S.getCell()))&&
(S.state=null);return S};var ma=this.isCellSelectable;this.isCellSelectable=function(S){return ma.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(S))};this.isCellLocked=function(S){for(;null!=S;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(S),"locked","0"))return!0;S=this.model.getParent(S)}return!1};var ba=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(S,da){"mouseDown"==da.getProperty("eventName")&&(S=da.getProperty("event").getState(),ba=null==S|| | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
A)}else if("view"==d.nodeName){if(d.hasAttribute("scale")&&(z.view.scale=parseFloat(d.getAttribute("scale"))),d.hasAttribute("dx")||d.hasAttribute("dy"))z.view.translate=new mxPoint(parseFloat(d.getAttribute("dx")||0),parseFloat(d.getAttribute("dy")||0))}else"fit"==d.nodeName&&(H=d.hasAttribute("max-scale")?parseFloat(d.getAttribute("max-scale")):1);d=d.nextSibling}}finally{A.endUpdate()}null!=H&&this.chromelessResize&&this.chromelessResize(!0,H)}return k};EditorUi.prototype.getCopyFilename=function(d,
f){var k=null!=d&&null!=d.getTitle()?d.getTitle():this.defaultFilename;d="";var v=k.lastIndexOf(".");0<=v&&(d=k.substring(v),k=k.substring(0,v));if(f){f=k;var z=new Date;k=z.getFullYear();v=z.getMonth()+1;var A=z.getDate(),H=z.getHours(),J=z.getMinutes();z=z.getSeconds();k=f+(" "+(k+"-"+v+"-"+A+"-"+H+"-"+J+"-"+z))}return k=mxResources.get("copyOf",[k])+d};EditorUi.prototype.fileLoaded=function(d,f,k){var v=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(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 |
GraphViewer.createViewerForElement=function(b,e){var g=b.getAttribute("data-mxgraph");if(null!=g){var p=JSON.parse(g),y=function(q){q=mxUtils.parseXml(q);q=new GraphViewer(b,q.documentElement,p);null!=e&&e(q)};null!=p.url?GraphViewer.getUrl(p.url,function(q){y(q)}):y(p.xml)}}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
la.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return la};var L=!1,Q=!1,X=!1,ea=this.fireMouseEvent;this.fireMouseEvent=function(la,oa,xa){la==mxEvent.MOUSE_DOWN&&(oa=this.updateMouseEvent(oa),L=this.isCellSelected(oa.getCell()),Q=this.isSelectionEmpty(),X=this.popupMenuHandler.isMenuShowing());ea.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(la,oa){var xa=mxEvent.isMouseEvent(oa.getEvent());this.popupMenuHandler.popupTrigger=!this.isEditing()&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.bbox&&mxUtils.contains(this.bbox,p.getGraphX(),p.getGraphY())?(this.setDisplay(""),this.repaint()):mxEvent.isTouchEvent(g)||this.reset();e=!1;this.resetActiveArrow()})})};HoverIcons.prototype.isResetEvent=function(b,e){return mxEvent.isAltDown(b)||null==this.activeArrow&&mxEvent.isShiftDown(b)||mxEvent.isPopupTrigger(b)&&!this.graph.isCloneEvent(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 |
Ma.scale=x;L="data:image/svg+xml;base64,"+L;var Q=wa.gridSize*Ma.gridSteps*ka,X=wa.getGraphBounds(),ea=Ma.translate.x*x,la=Ma.translate.y*x,oa=ea+(X.x-ea)/x-Ca,xa=la+(X.y-la)/x-Ca,sa=new Image;sa.onload=function(){try{for(var va=-Math.round(Q-mxUtils.mod((ea-oa)*ka,Q)),Fa=-Math.round(Q-mxUtils.mod((la-xa)*ka,Q));va<Ka;va+=Q)for(var Ua=Fa;Ua<cb;Ua+=Q)Da.drawImage(sa,va/ka,Ua/ka);Va()}catch(ab){null!=U&&U(ab)}};sa.onerror=function(va){null!=U&&U(va)};sa.src=L}else Va()}catch(va){null!=U&&U(va)}});Ea.onerror= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.model.getChildCount(L),X=0;X<Q;X++)this.updateCustomLinksForCell(x,this.model.getChildAt(L,X))};Graph.prototype.doUpdateCustomLinksForCell=function(x,L){};Graph.prototype.getAllConnectionConstraints=function(x,L){if(null!=x){L=mxUtils.getValue(x.style,"points",null);if(null!=L){x=[];try{var Q=JSON.parse(L);for(L=0;L<Q.length;L++){var X=Q[L];x.push(new mxConnectionConstraint(new mxPoint(X[0],X[1]),2<X.length?"0"!=X[2]:!0,null,3<X.length?X[3]:0,4<X.length?X[4]:0))}}catch(la){}return x}if(null!=
x.shape&&null!=x.shape.bounds){X=x.shape.direction;L=x.shape.bounds;var ea=x.shape.scale;Q=L.width/ea;L=L.height/ea;if(X==mxConstants.DIRECTION_NORTH||X==mxConstants.DIRECTION_SOUTH)X=Q,Q=L,L=X;L=x.shape.getConstraints(x.style,Q,L);if(null!=L)return L;if(null!=x.shape.stencil&&null!=x.shape.stencil.constraints)return x.shape.stencil.constraints;if(null!=x.shape.constraints)return x.shape.constraints}}return null};Graph.prototype.flipEdge=function(x){if(null!=x){var L=this.getCurrentCellStyle(x);L= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"stackLayout"==Q.childLayout)){var la=parseFloat(mxUtils.getValue(Q,"stackBorder",mxStackLayout.prototype.border));Q="1"==mxUtils.getValue(Q,"horizontalStack","1");var oa=this.graph.getActualStartSize(X);ea=ea.clone();Q?ea.height=L.height+oa.y+oa.height+2*la:ea.width=L.width+oa.x+oa.width+2*la;this.graph.model.setGeometry(X,ea)}}};var fa=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function x(xa){Q.get(xa)||(Q.put(xa,
!0),ea.push(xa))}for(var L=fa.apply(this,arguments),Q=new mxDictionary,X=this.graph.model,ea=[],la=0;la<L.length;la++){var oa=L[la];this.graph.isTableCell(oa)?x(X.getParent(X.getParent(oa))):this.graph.isTableRow(oa)&&x(X.getParent(oa));x(oa)}return ea};var ca=mxVertexHandler.prototype.isGhostPreview;mxVertexHandler.prototype.isGhostPreview=function(){return ca.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTableCell(this.state.cell)&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxConstraintHandler.prototype.update=function(x,L){this.isKeepFocusEvent(x)||!mxEvent.isAltDown(x.getEvent())?z.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(x){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var A=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(x,L){x=this.graph.getStartEditingCell(x,L);A.apply(this,arguments);var Q=this.graph.view.getState(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 |
(function(){mxGraphView.prototype.validateBackgroundPage=function(){var E=this.graph;if(null!=E.container&&!E.transparentBackground){if(E.pageVisible){var M=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var T=E.container.firstChild;null!=T&&T.nodeType!=mxConstants.NODETYPE_ELEMENT;)T=T.nextSibling;null!=T&&(this.backgroundPageShape=this.createBackgroundPageShape(M),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,
this.backgroundPageShape.init(E.container),T.style.position="absolute",E.container.insertBefore(this.backgroundPageShape.node,T),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(F){E.dblClick(F)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(F){E.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(F))}),mxUtils.bind(this,function(F){null!=
E.tooltipHandler&&E.tooltipHandler.isHideOnHover()&&E.tooltipHandler.hide();E.isMouseDown&&!mxEvent.isConsumed(F)&&E.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(F))}),mxUtils.bind(this,function(F){E.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(F))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=M,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
2/this.view.scale-this.view.translate.x-x.width/2)),this.snap(Math.round(this.container.clientHeight/2/this.view.scale-this.view.translate.y-x.height/2)))};Graph.prototype.isMouseInsertPoint=function(){return!1};Graph.prototype.addText=function(x,L,Q){var X=new mxCell;X.value="Text";X.geometry=new mxGeometry(0,0,0,0);X.vertex=!0;if(null!=Q&&this.model.isEdge(Q.cell)){X.style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];";X.geometry.relative=!0;X.connectable=!1;var ea= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
arguments);aa.handJiggle.passThrough=!1;aa.setFillColor=Ca;aa.setStrokeColor=wa;this.configurePointerEvents=pa;this.stroke=ra;this.fill=qa;aa.restore();ka&&null!=qa&&(aa.addTolerance=function(){})}Z.apply(this,arguments);aa.addTolerance=Y};var U=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(aa,Y,ka,qa,ra,pa){null!=aa.handJiggle&&aa.handJiggle.constructor==l?(aa.handJiggle.passThrough=!0,U.apply(this,arguments),aa.handJiggle.passThrough=!1):U.apply(this,arguments)}})(); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);ka.apply(this,arguments)};var qa=(new Date).getTime(),ra=0,pa=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(x,L,Q,X){pa.apply(this,arguments);Q!=this.currentTerminalState?(qa=(new Date).getTime(),ra=0):ra=(new Date).getTime()-qa;this.currentTerminalState=Q};var wa=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(x){return mxEvent.isShiftDown(x.getEvent())&&
mxEvent.isAltDown(x.getEvent())?!1:null!=this.currentTerminalState&&x.getState()==this.currentTerminalState&&2E3<ra||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,"outlineConnect","1"))&&wa.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(x,L,Q){L=null!=x&&0==x;var X=this.state.getVisibleTerminalState(L);x=null!=x&&(0==x||x>=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==x)?this.graph.getConnectionConstraint(this.state, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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=this.graph.getModel(),X=Q.getParent(this.state.cell),ea=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(L)==mxEvent.ROTATION_HANDLE||!Q.isEdge(X)||null==ea||!ea.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&Qa.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var x=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),L=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);
this.state.view.graph.model.isVertex(this.state.cell)&&x==mxConstants.NONE&&L==mxConstants.NONE?(x=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,x,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])};var Ta=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(x,L){Ta.apply(this,arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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!=this.globalVars?mxUtils.clone(this.globalVars):{};var l=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=l)for(var B in l)this.globalVars[B]=l[B]}catch(N){null!=window.console&&console.log("Error in vars URL parameter: "+N)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var H=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(l){var B=H.apply(this,arguments);null==B&&null!=this.globalVars&&(B=this.globalVars[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 |
ja.prototype.redrawPath=function(c,m,u,n,t){c.setStrokeWidth(1);c.setFillColor(this.stroke);m=n/5;c.rect(0,0,m,t);c.fillAndStroke();c.rect(2*m,0,m,t);c.fillAndStroke();c.rect(4*m,0,m,t);c.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",ja);fa.prototype.moveTo=function(c,m){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=m;this.firstX=c;this.firstY=m};fa.prototype.close=function(){null!=this.firstX&&null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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 |
return Editor.createSvgDataUri(d)};EditorUi.prototype.embedCssFonts=function(d,f){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(d,f)};EditorUi.prototype.embedExtFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(d)};EditorUi.prototype.exportToCanvas=function(d,f,k,v,z,A,H,J,O,G,ja,fa,ca,ia,ma,ba){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(d,f,k,v,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 |
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,g){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,g,p,y,q){DrawioFile.call(this,b,e);this.title=g;this.mode=p?null:App.MODE_DEVICE;this.fileHandle=y;this.desc=q};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
y.editor.graph.shadowId="lightboxDropShadow";Graph.prototype.shadowId=p;y.refresh=function(){};var q=mxUtils.bind(this,function(W){27==W.keyCode&&y.destroy()}),E=this.initialOverflow,M=y.destroy;y.destroy=function(){null==b&&(mxEvent.removeListener(document.documentElement,"keydown",q),document.body.removeChild(e),document.body.removeChild(g),document.body.style.overflow=E,GraphViewer.resizeSensorEnabled=!0,M.apply(this,arguments))};var T=y.editor.graph,F=T.container;F.style.overflow="hidden";this.lightboxChrome&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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=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 |
l);mxEvent.addListener(this.container,"mousemove",l);mxEvent.addListener(this.container,"mouseleave",function(U){B=null});this.isMouseInsertPoint=function(){return null!=B};var N=this.getInsertPoint;this.getInsertPoint=function(){return null!=B?this.getPointForEvent(B):N.apply(this,arguments)};var Z=this.layoutManager.getLayout;this.layoutManager.getLayout=function(U){var aa=this.graph.getCellStyle(U);if(null!=aa&&"rack"==aa.childLayout){var Y=new mxStackLayout(this.graph,!1);Y.gridSize=null!=aa.rackUnitSize? | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Graph.prototype.createEdgeWipeAnimation=function(b,e){var g=b.absolutePoints.slice(),p=b.segments,y=b.length,q=g.length;return{execute:mxUtils.bind(this,function(E,M){if(null!=b.shape){var T=[g[0]];M=E/M;e||(M=1-M);for(var F=y*M,K=1;K<q;K++)if(F<=p[K-1]){T.push(new mxPoint(g[K-1].x+(g[K].x-g[K-1].x)*F/p[K-1],g[K-1].y+(g[K].y-g[K-1].y)*F/p[K-1]));break}else F-=p[K-1],T.push(g[K]);b.shape.points=T;b.shape.redraw();0==E&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!=
b.text.node&&(b.text.node.style.opacity=M)}}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.points=g,b.shape.redraw(),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),e?1:0))})}}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(d,f){f=f||"";d=atob(d);for(var k=d.length,v=Math.ceil(k/1024),z=Array(v),A=0;A<v;++A){for(var H=1024*A,J=Math.min(H+1024,k),O=Array(J-H),G=0;H<J;++G,++H)O[G]=d[H].charCodeAt(0);z[A]=new Uint8Array(O)}return new Blob(z,{type:f})};EditorUi.prototype.saveLocalFile=function(d,f,k,v,z,A,H,J){A=null!=A?A:!1;H=null!=H?H:"vsdx"!=z&&(!mxClient.IS_IOS||!navigator.standalone);z=this.getServiceCount(A);isLocalStorage&&z++;var O=4>=z?2:6<z?4:3;f=new CreateDialog(this,f,mxUtils.bind(this,function(G,ja){try{if("_blank"== | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.freehand){var ma=H.freehand.createStyle;H.freehand.createStyle=function(ka){return ma.apply(this,arguments)+"sketch=0;"}}A.editor.addListener("statusChanged",mxUtils.bind(this,function(){A.setStatusText(A.editor.getStatus())}));A.setStatusText(A.editor.getStatus());var ba=A.menus.get("viewZoom");if(null!=ba){var S=function(ka){if(mxEvent.isAltDown(ka))A.hideCurrentMenu(),A.actions.get("customZoom").funct(),mxEvent.consume(ka);else if("geMenuItem"==mxEvent.getSource(ka).className||mxEvent.isShiftDown(ka))A.hideCurrentMenu(), | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.initCanvas=function(){var b=this.editor.graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b.view.scale)))};b.view.getBackgroundPageBounds=function(){var B=this.graph.getPageLayout(),N=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+B.x*N.width),this.scale*(this.translate.y+B.y*N.height),this.scale*B.width*N.width, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
var q=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var x=q.apply(this,arguments);x.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return x};mxConnectionHandler.prototype.updatePreview=function(x){};var E=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var x=E.apply(this,arguments),L=x.getCell;x.getCell=mxUtils.bind(this,function(Q){var X=L.apply(this,arguments);this.error=null;return X}); | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
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 |
(function(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(g){return window.setTimeout(g,20)},e=function(g,p){function y(){this.q=[];this.add=function(k){this.q.push(k)};var d,f;this.call=function(){d=0;for(f=this.q.length;d<f;d++)this.q[d].call()}}function q(d,f){return d.currentStyle?d.currentStyle[f]:window.getComputedStyle?window.getComputedStyle(d,null).getPropertyValue(f):d.style[f]}function E(d,f){if(!d.resizedAttached)d.resizedAttached= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
HoverIcons.prototype.click=function(b,e,g){var p=g.getEvent(),y=g.getGraphX(),q=g.getGraphY();y=this.getStateAt(b,y,q);null==y||!this.graph.model.isEdge(y.cell)||this.graph.isCloneEvent(p)||y.getVisibleTerminalState(!0)!=b&&y.getVisibleTerminalState(!1)!=b?null!=b&&this.execute(b,e,g):(this.graph.setSelectionCell(y.cell),this.reset());g.consume()}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
(null!=aa||0<=mxUtils.indexOf(Y,mxUtils.hex2rgb(ka.fill)))?"solid":qa.fillStyle);ka.fillStyle=Y;return ka};l.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};l.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};l.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var aa=2;aa<arguments.length;aa+=2)this.lastX=arguments[aa-1],this.lastY=arguments[aa],this.path.push(this.canvas.format(this.lastX)), | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
da)}finally{f.model.endUpdate()}}function F(ba){f.model.beginUpdate();try{var S=M(ba),da=f.getIncomingTreeEdges(ba),P=f.cloneCells([da[0],ba]);f.model.setTerminal(da[0],P[1],!1);f.model.setTerminal(P[0],P[1],!0);f.model.setTerminal(P[0],ba,!1);var V=f.model.getParent(ba),l=V.geometry,B=[];f.view.currentRoot!=V&&(P[1].geometry.x-=l.x,P[1].geometry.y-=l.y);f.traverse(ba,!0,function(U,aa){var Y=null!=aa&&f.isTreeEdge(aa);Y&&B.push(aa);(null==aa||Y)&&B.push(U);return null==aa||Y});var N=ba.geometry.width+ | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
DrawioFile.prototype.sendErrorReport=function(b,e,g,p){try{var y=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),q=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),E=this.getCurrentUser(),M=null!=E?this.ui.hashValue(E.id):"unknown",T=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",F=this.getTitle(),K=F.lastIndexOf(".");E="xml";0<K&&(E=F.substring(K));var R=null!=g?g.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
":\n\nAppVersion="+navigator.appVersion+"\nFile="+this.ui.hashValue(this.getId())+" ("+this.getMode()+")"+(this.isModified()?" modified":"")+"\nSize/Type="+this.getSize()+" ("+E+")\nUser="+M+T+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+DrawioFile.SYNC+(null!=this.sync?(this.sync.enabled?" enabled":"")+(this.sync.isConnected()?" connected":""):"")+"\nPlugins="+(null!=mxSettings.settings?mxSettings.getPlugins():"null")+"\n\nStats:\n"+JSON.stringify(this.stats,null,2)+(null!=e?"\n\n"+e:
"")+(null!=g?"\n\nError: "+g.message:"")+"\n\nStack:\n"+R+"\n\nShadow:\n"+y+"\n\nData:\n"+q,p)}catch(W){}}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.getCellsForUngroup=function(E){E=p.apply(this,arguments);for(var M=[],T=0;T<E.length;T++)this.isTable(E[T])||this.isTableRow(E[T])||this.isTableCell(E[T])||M.push(E[T]);return M};Graph.prototype.updateCssTransform=function(){var E=this.view.getDrawPane();if(null!=E)if(E=E.parentNode,this.useCssTransforms){var M=E.getAttribute("transform");E.setAttribute("transformOrigin","0 0");var T=Math.round(100*this.currentScale)/100;E.setAttribute("transform","scale("+T+","+T+")translate("+Math.round(100*
this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");M!=E.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",E.getAttribute("transform"))}else E.removeAttribute("transformOrigin"),E.removeAttribute("transform")};var y=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var E=this.graph.useCssTransforms,M=this.scale,T=this.translate;E&&(this.scale=this.graph.currentScale,this.translate= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
c.lineTo(C,C),c.close(),c.fill()),0!=ha&&(c.setFillAlpha(Math.abs(ha)),c.setFillColor(0>ha?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(C,C),c.lineTo(C,t),c.lineTo(0,t-C),c.close(),c.fill()),c.begin(),c.moveTo(C,t),c.lineTo(C,C),c.lineTo(0,0),c.moveTo(C,C),c.lineTo(n,C),c.end(),c.stroke())};p.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?(c=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(c,c,0,0)):null};mxCellRenderer.registerShape("cube", | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.createControlTab=function(b,e,g){var p=this.createTab();p.className="geTab geControlTab";p.style.width="30px";null!=b&&p.setAttribute("title",b);b=document.createElement("div");b.className="geAdaptiveAsset";b.style.backgroundImage="url("+e+")";b.style.backgroundRepeat="no-repeat";b.style.backgroundPosition="center";b.style.backgroundSize="24px";b.style.position="relative";b.style.opacity="0.5";b.style.width="100%";b.style.height="100%";p.appendChild(b);mxEvent.addListener(p,"click",
g);return p};EditorUi.prototype.createPageInsertTab=function(){return this.createControlTab(mxResources.get("insertPage"),Editor.plusImage,mxUtils.bind(this,function(b){this.insertPage();mxEvent.consume(b)}))}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxUtils.bind(this,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 |
.5*c.width,.5*(c.height-m));n||(C=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(C,0,Math.min(c.width,c.width-u),Math.min(c.height,c.height-m)):new mxRectangle(Math.min(c.width,c.width-u),0,C,Math.min(c.height,c.height-m))}return new mxRectangle(0,Math.min(c.height,m),0,0)}return null};v.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*
this.scale,0,0,0):null};K.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var m=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,m*this.scale),0,Math.max(0,m*this.scale))}return null};mxUtils.extend(J,mxActor);J.prototype.size=.2;J.prototype.fixedSize=20;J.prototype.isRoundable=function(){return!0};J.prototype.redrawPath=function(c,m,u,n,t){m="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"-rev_"+this.ui.hashValue(M):"")+(null!=z?"-latest_"+z:"")+(null!=k?"-latestRev_"+this.ui.hashValue(k.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+W,action:y,label:"user_"+R+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+d+"-patches_"+e.length+"-size_"+this.getSize()})}catch(A){}}),b)}}catch(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 |
N({message:mxResources.get("error")+" "+pa.getStatus()})},qa,this.timeout,function(){U&&null!=N&&N({code:App.ERROR_TIMEOUT,retry:ra})},ka)});ra()}catch(pa){null!=N&&N(pa)}};Editor.prototype.absoluteCssFonts=function(l){var B=null;if(null!=l){var N=l.split("url(");if(0<N.length){B=[N[0]];l=window.location.pathname;var Z=null!=l?l.lastIndexOf("/"):-1;0<=Z&&(l=l.substring(0,Z+1));Z=document.getElementsByTagName("base");var U=null;null!=Z&&0<Z.length&&(U=Z[0].getAttribute("href"));for(var aa=1;aa<N.length;aa++)if(Z=
N[aa].indexOf(")"),0<Z){var Y=Editor.trimCssUrl(N[aa].substring(0,Z));this.graph.isRelativeUrl(Y)&&(Y=null!=U?U+Y:window.location.protocol+"//"+window.location.hostname+("/"==Y.charAt(0)?"":l)+Y);B.push('url("'+Y+'"'+N[aa].substring(Z))}else B.push(N[aa])}else B=[l]}return null!=B?B.join(""):null};Editor.prototype.mapFontUrl=function(l,B,N){/^https?:\/\//.test(B)&&!this.isCorsEnabledForUrl(B)&&(B=PROXY_URL+"?url="+encodeURIComponent(B));N(l,B)};Editor.prototype.embedCssFonts=function(l,B){var N=l.split("url("), | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed 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.executeLayouts=function(b,e){this.executeLayout(mxUtils.bind(this,function(){var g=new mxCompositeLayout(this.editor.graph,b),p=this.editor.graph.getSelectionCells();g.execute(this.editor.graph.getDefaultParent(),0==p.length?null:p)}),!0,e)}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
0<this.graph.extFonts.length&&(Z=this.graph.extFonts.map(function(U){return U.name+"^"+U.url}),N.setAttribute("extFonts",Z.join("|")));return N};Editor.prototype.isDataSvg=function(l){try{var B=mxUtils.parseXml(l).documentElement.getAttribute("content");if(null!=B&&(null!=B&&"<"!=B.charAt(0)&&"%"!=B.charAt(0)&&(B=unescape(window.atob?atob(B):Base64.decode(cont,B))),null!=B&&"%"==B.charAt(0)&&(B=decodeURIComponent(B)),null!=B&&0<B.length)){var N=mxUtils.parseXml(B).documentElement;return"mxfile"==
N.nodeName||"mxGraphModel"==N.nodeName}}catch(Z){}return!1};Editor.prototype.extractGraphModel=function(l,B,N){return Editor.extractGraphModel.apply(this,arguments)};var g=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();g.apply(this,arguments)};var 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 |
A)}else if("view"==d.nodeName){if(d.hasAttribute("scale")&&(z.view.scale=parseFloat(d.getAttribute("scale"))),d.hasAttribute("dx")||d.hasAttribute("dy"))z.view.translate=new mxPoint(parseFloat(d.getAttribute("dx")||0),parseFloat(d.getAttribute("dy")||0))}else"fit"==d.nodeName&&(H=d.hasAttribute("max-scale")?parseFloat(d.getAttribute("max-scale")):1);d=d.nextSibling}}finally{A.endUpdate()}null!=H&&this.chromelessResize&&this.chromelessResize(!0,H)}return k};EditorUi.prototype.getCopyFilename=function(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 |
F&&this.model.isVertex(d))&&(f=this.view.getState(d),null!=f&&(null==R||!R(f,E,M))&&this.intersects(f,E,M)))return d}return null};Graph.prototype.isRecursiveVertexResize=function(E){return!this.isSwimlane(E.cell)&&0<this.model.getChildCount(E.cell)&&!this.isCellCollapsed(E.cell)&&"1"==mxUtils.getValue(E.style,"recursiveResize","1")&&null==mxUtils.getValue(E.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(E){for(var M=this.getCellGeometry(E);null!=M&&M.relative;)E=this.getModel().getParent(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 |
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 |
mxUtils.write(d,mxResources.get("borderColor")+":");var A="#0000ff",H=null;H=mxUtils.button("",mxUtils.bind(this,function(J){this.pickColor(A||"none",function(O){A=O;k()});mxEvent.consume(J)}));k();H.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";H.style.marginLeft="4px";H.style.height="22px";H.style.width="22px";H.style.position="relative";H.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";H.className="geColorBtn";d.appendChild(H);mxUtils.br(d);return{getColor:function(){return 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 |
"arrowSize"],function(u){var n=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",La.prototype.arrowWidth))),t=Math.max(0,Math.min(c,mxUtils.getValue(this.state.style,"arrowSize",La.prototype.arrowSize)));return new mxPoint(u.x+(1-t)*u.width,u.y+(1-n)*u.height/2)},function(u,n){this.state.style.arrowWidth=Math.max(0,Math.min(1,Math.abs(u.y+u.height/2-n.y)/u.height*2));this.state.style.arrowSize=Math.max(0,Math.min(c,(u.x+u.width-n.x)/u.width))})]}},nb=function(c){return function(m){return[hb(m,
["size"],function(u){var n=Math.max(0,Math.min(.5*u.height,parseFloat(mxUtils.getValue(this.state.style,"size",c))));return new mxPoint(u.x,u.y+n)},function(u,n){this.state.style.size=Math.max(0,n.y-u.y)},!0)]}},ub=function(c,m,u){return function(n){var t=[hb(n,["size"],function(C){var D=Math.max(0,Math.min(C.width,Math.min(C.height,parseFloat(mxUtils.getValue(this.state.style,"size",m)))))*c;return new mxPoint(C.x+D,C.y+D)},function(C,D){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(C.width, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
D&&"fold"==C)&&c.lineTo(I,t-ha-I):c.lineTo(0,t-I)};Na.prototype.moveSEInner=function(c,m,u,n,t,C,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==C?c.moveTo(n-I,t-I):"rounded"==D||"default"==D&&"rounded"==C||"snip"==D||"default"==D&&"snip"==C?c.moveTo(n-I,t-ha-.5*I):("invRound"==D||"default"==D&&"invRound"==C||"fold"==D||"default"==D&&"fold"==C)&&c.moveTo(n-I,t-ha-I):c.moveTo(n-I,t)};Na.prototype.lineSEInner=function(c,m,u,n,t,C,D,ha,I,ua){ua?"square"==D||"default"==D&&"square"==C?c.lineTo(n-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 |
[];for(var y=0;256>y;y++)for(var q=y,E=0;8>E;E++)q=1==(q&1)?3988292384^q>>>1:q>>>1,Editor.crcTable[y]=q;Editor.updateCRC=function(l,B,N,Z){for(var U=0;U<Z;U++)l=Editor.crcTable[(l^B.charCodeAt(N+U))&255]^l>>>8;return l};Editor.crc32=function(l){for(var B=-1,N=0;N<l.length;N++)B=B>>>8^Editor.crcTable[(B^l.charCodeAt(N))&255];return(B^-1)>>>0};Editor.writeGraphModelToPng=function(l,B,N,Z,U){function aa(pa,wa){var Ca=qa;qa+=wa;return pa.substring(Ca,qa)}function Y(pa){pa=aa(pa,4);return pa.charCodeAt(3)+ | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
y.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);y.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);y.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);y.getView().addListener("unitChanged",this.selectionStateListener);this.editor.chromeless&&!this.editor.editable&&(this.footerHeight=0,y.isEnabled=function(){return!1},y.panningHandler.isForcePanningEvent=function(P){return!mxEvent.isPopupTrigger(P.getEvent())});this.actions=new Actions(this);this.menus= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxUtils.bind(this,fa.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,fa.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function ia(){mxRectangleShape.call(this)}function ma(){mxActor.call(this)}function ba(){mxActor.call(this)}function S(){mxActor.call(this)}function da(){mxRectangleShape.call(this)}function P(){mxRectangleShape.call(this)}function V(){mxCylinder.call(this)}function l(){mxShape.call(this)}function B(){mxShape.call(this)}function N(){mxEllipse.call(this)} | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Graph.prototype.cellsRemoved=function(x){if(null!=x){for(var L=new mxDictionary,Q=0;Q<x.length;Q++)L.put(x[Q],!0);var X=[];for(Q=0;Q<x.length;Q++){var ea=this.model.getParent(x[Q]);null==ea||L.get(ea)||(L.put(ea,!0),X.push(ea))}for(Q=0;Q<X.length;Q++)if(ea=this.view.getState(X[Q]),null!=ea&&(this.model.isEdge(ea.cell)||this.model.isVertex(ea.cell))&&this.isCellDeletable(ea.cell)&&this.isTransparentState(ea)){for(var la=!0,oa=0;oa<this.model.getChildCount(ea.cell)&&la;oa++)L.get(this.model.getChildAt(ea.cell,
oa))||(la=!1);la&&x.push(ea.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(x){for(var L=[],Q=0;Q<x.length;Q++)this.isCellDeletable(x[Q])&&this.isTransparentState(this.view.getState(x[Q]))&&L.push(x[Q]);x=L;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(x,L){this.setAttributeForCell(x,"link",L)};Graph.prototype.setTooltipForCell=function(x,L){var Q="tooltip";Graph.translateDiagram&& | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
M=T}return M};var b=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(E){if(this.useCssTransforms){var M=this.currentScale,T=this.currentTranslate;E=new mxRectangle((E.x+2*T.x)*M-T.x,(E.y+2*T.y)*M-T.y,E.width*M,E.height*M)}b.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=function(E){E=this.strokeWidth;this.graph.useCssTransforms&&(E/=this.graph.currentScale);return E};mxGraphView.prototype.getGraphBounds=function(){var E=this.graphBounds;if(this.graph.useCssTransforms){var M=
this.graph.currentTranslate,T=this.graph.currentScale;E=new mxRectangle((E.x+M.x)*T,(E.y+M.y)*T,E.width*T,E.height*T)}return E};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var e=mxGraphView.prototype.validate;mxGraphView.prototype.validate=function(E){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y, | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Graph.prototype.createTable=function(b,e,g,p,y,q,E,M,T){g=null!=g?g:60;p=null!=p?p:40;q=null!=q?q:30;M=null!=M?M:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;";T=null!=T?T:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";return this.createParent(this.createVertex(null,
null,null!=y?y:"",0,0,e*g,b*p+(null!=y?q:0),null!=E?E:"shape=table;startSize="+(null!=y?q:"0")+";container=1;collapsible=0;childLayout=tableLayout;"),this.createParent(this.createVertex(null,null,"",0,0,e*g,p,M),this.createVertex(null,null,"",0,0,g,p,T),e,g,0),b,0,p)}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.state.x+(db.width+kb)*la;this.shape.bounds.y=oa.y+(bb==Ua.length-1?0:eb.y*la);this.shape.bounds.height=oa.height-(bb==Ua.length-1?0:(eb.height+eb.y)*la)}this.shape.redraw()}};var Pa=!1;$a.setPosition=function(eb,jb,ib){kb=Math.max(Graph.minTableColumnWidth-db.width,jb.x-eb.x-db.width);Pa=mxEvent.isShiftDown(ib.getEvent());null==lb||Pa||(kb=Math.min(kb,lb.width-Graph.minTableColumnWidth))};$a.execute=function(eb){if(0!=kb)X.setTableColumnWidth(this.state.cell,kb,Pa);else if(!Q.blockDelayedSelection){var jb= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var m=2*mxUtils.getValue(this.style,"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,c.height*m),0,0)}return null};d.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var m=mxUtils.getValue(this.style,"size",15);mxUtils.getValue(this.style,"lid",!0)||(m/=2);return new mxRectangle(0,Math.min(c.height*this.scale,2*m*this.scale),0,Math.max(0,.3*m*this.scale))}return null};k.prototype.getLabelMargins= | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
EditorUi.prototype.createTimeout=function(b,e,g){var p=!0,y=null,q=mxUtils.bind(this,function(M){y.clear()&&(p=!1,M=null!=M?M:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(b,e,g)})},null!=g?g(M):this.handleError(M))}),E=window.setTimeout(q,null!=b?b:this.timeout);y={clear:function(){window.clearTimeout(E);return p},isAlive:function(){return p}};null!=e&&this.tryAndHandle(mxUtils.bind(this,function(){e(y)}),q);return y}; | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.