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 |
---|---|---|---|---|---|---|---|
v.width+", "+v.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(q.encodeCells(m)))+"'),")}}));d.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function m(F){return null==F||null==F.boundingBox||!isNaN(F.boundingBox.x)&&!isNaN(F.boundingBox.y)&&!isNaN(F.boundingBox.width)&&!isNaN(F.boundingBox.height)}var v=q.getGraphBounds(),A=q.view.translate,I=q.view.scale;q.insertVertex(q.getDefaultParent(),null,"",v.x/I-A.x,v.y/I-A.y,v.width/I,v.height/I,"fillColor=none;strokeColor=red;"); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(P){E=P};this.setAutoScroll=function(P){U=P};this.setOpenFill=function(P){J=P};this.setStopClickEnabled=function(P){k=P};this.setSelectInserted=function(P){n=P};this.setSmoothing=function(P){l=P};this.setPerfectFreehandMode=function(P){t=P};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=function(P){p.size=P};this.getBrushSize=function(){return p.size};var y=function(P){e=P;b.getRubberband().setEnabled(!P);b.graphHandler.setSelectEnabled(!P);b.graphHandler.setMoveEnabled(!P); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"-rev_"+this.ui.hashValue(D):"")+(null!=p?"-latest_"+p:"")+(null!=k?"-latestRev_"+this.ui.hashValue(k.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+J,action:q,label:"user_"+U+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+f.length+"-size_"+this.getSize()})}catch(t){}}),b)}}catch(k){}}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
g.prototype.lineTo=function(S,W){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,S,W),this.lastX=S,this.lastY=W)};g.prototype.moveTo=function(S,W){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,S,W),this.lastX=S,this.lastY=W,this.firstX=S,this.firstY=W)};g.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};g.prototype.quadTo=function(S,W,T,X){this.passThrough? | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
ba=Array(Y.length);for(var fa=0;fa<Y.length;fa++)ba[fa]=String.fromCharCode(Y[fa]);ba=ba.join("")}S=null!=S?S:"data:image/png;base64,";ba=S+Editor.base64Encode(ba)}x(ba)}}else null!=F&&(0==Y.getStatus()?F({message:mxResources.get("accessDenied")},Y):404==Y.getStatus()?F({message:mxResources.get("fileNotFound"),code:Y.getStatus()},Y):F({message:this.getErrorMessage(Y)},Y))}),function(Y){null!=F&&F({message:mxResources.get("error")+" "+Y.getStatus()})},X,this.timeout,function(){Q&&null!=F&&F({code:App.ERROR_TIMEOUT, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.addMenuItem(A,"mergeCells"):(1<x.style.colspan||1<x.style.rowspan)&&this.addMenuItem(A,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems=function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}c.actions.get("print").funct=function(){c.showDialog((new PrintDialog(c)).container, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
console.log("Error in MathJax.typeset: "+T.toString())}};window.MathJax=null!=x?x:{options:{skipHtmlTags:{"[+]":["text"]}},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var W=0;W<Editor.mathJaxQueue.length;W++)Editor.doMathJaxRender(Editor.mathJaxQueue[W])}}};Editor.MathJaxRender=function(W){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(W):Editor.mathJaxQueue.push(W)}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",c,"\nresponse:",V,"\nresult:",R),this.spinner.stop(),e(R,O,P,N))}),C)}),C,mxUtils.bind(this,function(O){3>n++?t.clear()&&(this.spinner.stop(),p()):C(O)}))}),C);else{var B={message:mxResources.get("error")+" "+G.getStatus()};try{B=JSON.parse(G.getText()),B=B.error}catch(V){}C(B)}}),C)}),k)});p()};EditorUi.prototype.extractMermaidMindmap=function(c){for(0<c[1].indexOf("orientation")&&c.splice(1,1);1<c.length&&""==c[1];)c.splice(1,1);
for(var e=[],k=2;k<c.length;k++){var n=mxUtils.trim(c[k]);"["!=n&&"]"!=n&&"%%"!=n.substring(0,2)&&"##"!=n.substring(0,2)&&(n=c[k].replace(/[-|>]/g," "),""!=mxUtils.trim(n)&&" "==n.charAt(0)&&e.push(n))}return"mindmap\nroot(("+mxUtils.trim(c[1])+"))\n"+e.join("\n")};EditorUi.prototype.extractMermaidDeclaration=function(c){"o\n\n"==c.substring(0,3)&&(c=c.substring(3));var e=c.split("```");e=1<e.length?e:c.split("<pre>");e=1<e.length?e:c.split("~~~");e=1<e.length?e:c.split("%%");e=1<e.length?e:c.split("(Begins)"); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
T;sa.disableEdgeStyle=!1;this.executeLayout(function(){sa.execute(G.getDefaultParent(),Ua);G.moveCells(Ua,ba,fa)},!0,Z);Z=null}else if("orgchart"==aa){G.view.validate();var Ja=new mxOrgChartLayout(G,2,T,W),Ha=Ja.isVertexIgnored;Ja.isVertexIgnored=function(Ca){return Ha.apply(this,arguments)||0>mxUtils.indexOf(t,Ca)};this.executeLayout(function(){Ja.execute(G.getDefaultParent());ma()},!0,Z);Z=null}else if("organic"==aa||"auto"==aa&&Ua.length>t.length){G.view.validate();var ya=new mxFastOrganicLayout(G); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
!1,App.loadScripts(["js/shapes-14-6-5.min.js","js/stencils.min.js","js/extensions.min.js"],e,function(y){document.body.innerHTML="";var C=document.createElement("pre");mxUtils.write(C,y.stack);document.body.appendChild(C)}))},function(c){c=document.getElementById("geStatus");null!=c&&(c.innerHTML="Error loading page. <a>Please try refreshing.</a>",c.getElementsByTagName("a")[0].onclick=function(){mxLanguage="en";d(mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,
mxLanguage))})})};if(!App.isMainCalled)if(App.isMainCalled=!0,window.onerror=function(J,c,e,k,n){EditorUi.logError("Global: "+(null!=J?J:""),c,e,k,n,null,!0);null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug("Message:",J,"\nURL:",c,"\nLine:",e,"\nColumn:",k,"\nError:",n)):console.error("Message:",J,"\nURL:",c,"\nLine:",e,"\nColumn:",k,"\nError:",n);window.setTimeout(function(){alert("Error: "+(null!=J?J:""))},100)},window.top!=window.self||"import.diagrams.net"!==window.location.hostname&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
return v});null!=G?(d.clonePages=G,G=null):(G=d.clonePages,d.clonePages=function(){var m=Date.now(),v=G.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-m+" ms","args",arguments);return v});null!=B?(d.getHashValueForPages=B,B=null):(B=d.getHashValueForPages,d.getHashValueForPages=function(){var m=Date.now(),v=B.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],"time",Date.now()-m+" ms","args",arguments);return v}); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"metaEdit","0")?c.showDataDialog(A):k.apply(this,arguments)}}catch(F){c.handleError(F)}};e.getLinkTitle=function(A){return c.getLinkTitle(A)};e.customLinkClicked=function(A){var I=!1;try{c.handleCustomLink(A),I=!0}catch(g){c.handleError(g)}return I};var n=e.parseBackgroundImage;e.parseBackgroundImage=function(A){var I=n.apply(this,arguments);null!=I&&null!=I.src&&Graph.isPageLink(I.src)&&(I={originalSrc:I.src});return I};var p=e.setBackgroundImage;e.setBackgroundImage=function(A){null!=A&&null!=A.originalSrc&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
!navigator.onLine||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,e,k){var n=null==c||null==e;k=null!=k?k:24;var p=new Spinner({lines:12,length:k,width:Math.round(k/3),radius:Math.round(k/2),rotate:0,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),t=p.spin;p.spin=function(C,G){var B= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(){b.hideDialog()})});L.className="geBtn";b.editor.cancelFirst&&f.appendChild(L);K=mxUtils.button(mxResources.get("insert"),function(c){try{b.hideDialog(),d(z.value,D.value,c)}catch(e){b.handleError(e)}});K.className="geBtn gePrimaryBtn";f.appendChild(K);b.editor.cancelFirst||f.appendChild(L);this.container=f},NewDialog=function(b,f,l,d,q,u,z,D,L,K,E,U,J,c,e,k,n,p){function t(da){null!=da&&(Ga=qa=da?135:140);da=!0;if(null!=Ia)for(;v<Ia.length&&(da||0!=mxUtils.mod(v,30));){var la=Ia[v++];la=
V(la.url,la.libs,la.title,la.tooltip?la.tooltip:la.title,la.select,la.imgUrl,la.info,la.onClick,la.preview,la.noImg,la.clibs);da&&la.click();da=!1}}function y(da,la,ma,oa,ia,ka){if(null!=da&&mxUtils.isAncestorNode(document.body,oa)){da=mxUtils.parseXml(da);da=Editor.parseDiagramNode(da.documentElement);var wa=new mxCodec(da.ownerDocument),sa=new mxGraphModel;wa.decode(da,sa);da=sa.root.getChildAt(0).children;b.sidebar.createTooltip(oa,da,Math.min((window.innerWidth||document.documentElement.clientWidth|| | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
if(null!=Y.tags.visible){null==ca&&(ca=[]);var aa=this.getAllTags();for(fa=0;fa<aa.length;fa++)0>mxUtils.indexOf(Y.tags.visible,aa[fa])&&0>mxUtils.indexOf(ca,aa[fa])&&ca.push(aa[fa])}null!=ca&&this.setHiddenTags(ca);this.refresh()}0<ba.length&&(M++,this.executeAnimations(ba,T,Z?1:Y.steps,Z?0:Y.delay));0==M?X():W()}else this.stoppingCustomActions=this.executingCustomActions=!1,W(),null!=x&&x()});X()}};Graph.prototype.doUpdateCustomLinksForCell=function(g,x){var F=this.getLinkForCell(x);null!=F&&"data:action/json,"==
F.substring(0,17)&&this.setLinkForCell(x,this.updateCustomLink(g,F));if(this.isHtmlLabel(x)){var M=document.createElement("div");M.innerHTML=Graph.sanitizeHtml(this.getLabel(x));for(var Q=M.getElementsByTagName("a"),S=!1,W=0;W<Q.length;W++)F=Q[W].getAttribute("href"),null!=F&&"data:action/json,"==F.substring(0,17)&&(Q[W].setAttribute("href",this.updateCustomLink(g,F)),S=!0);S&&this.labelChanged(x,M.innerHTML)}};Graph.prototype.updateCustomLink=function(g,x){if("data:action/json,"==x.substring(0,17))try{var F= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
L()?"":Editor.isDarkMode()?"#ff0000":"#ffcfcf"}catch(I){b.handleError(I)}});P.setAttribute("title",mxResources.get("find")+" (Enter)");P.style.float="none";P.style.width="120px";P.style.marginTop="6px";P.style.marginLeft="8px";P.style.overflow="hidden";P.style.textOverflow="ellipsis";P.className="geBtn gePrimaryBtn";y.appendChild(P);var N=document.createElement("div");N.style.marginTop="10px";if(u){var H=function(I,g,x,F,M){if(null==M||"1"!=M.html)return F=I.toLowerCase().indexOf(g,F),0>F?I:I.substr(0,
F)+x+I.substr(F+g.length);var Q=I;g=mxUtils.htmlEntities(g);M=[];var S=-1;for(I=I.replace(/<br>/ig,"\n");-1<(S=I.indexOf("<",S+1));)M.push(S);S=I.match(/<[^>]*>/g);I=I.replace(/<[^>]*>/g,"");F=I.toLowerCase().indexOf(g,F);if(0>F)return Q;Q=F+g.length;x=mxUtils.htmlEntities(x);I=I.substr(0,F)+x+I.substr(Q);for(var W=0,T=0;T<M.length;T++){if(M[T]-W<F)I=I.substr(0,M[T])+S[T]+I.substr(M[T]);else{var X=M[T]-W<Q?F+W:M[T]+(x.length-g.length);I=I.substr(0,X)+S[T]+I.substr(X)}W+=S[T].length}return I.replace(/\n/g,
"<br>")},m=mxUtils.button(mxResources.get("replFind"),function(){try{if(null!=k&&null!=J){var I=J.cell,g=E.getLabel(I);E.isCellEditable(I)&&E.model.setValue(I,H(g,k,G.value,n-k.length,E.getCurrentCellStyle(I)));C.style.backgroundColor=L(!1,!0)?"":Editor.isDarkMode()?"#ff0000":"#ffcfcf"}}catch(x){b.handleError(x)}});m.setAttribute("title",mxResources.get("replFind"));m.style.float="none";m.style.width="120px";m.style.marginTop="6px";m.style.marginLeft="8px";m.style.overflow="hidden";m.style.textOverflow= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
38==H.keyCode?(J(m,mxConstants.DIRECTION_NORTH),mxEvent.consume(H)):39==H.keyCode?(J(m,mxConstants.DIRECTION_EAST),mxEvent.consume(H)):40==H.keyCode&&(J(m,mxConstants.DIRECTION_SOUTH),mxEvent.consume(H)))}}catch(A){c.handleError(A)}mxEvent.isConsumed(H)||B.apply(this,arguments)};var V=e.connectVertex;e.connectVertex=function(H,m,v,A,I,g,x){var F=e.getIncomingTreeEdges(H);if(d(H)){var M=D(H),Q=M==mxConstants.DIRECTION_EAST||M==mxConstants.DIRECTION_WEST,S=m==mxConstants.DIRECTION_EAST||m==mxConstants.DIRECTION_WEST;
return M==m||0==F.length?E(H,m):Q==S?K(H):L(H,m!=mxConstants.DIRECTION_NORTH&&m!=mxConstants.DIRECTION_WEST)}return V.apply(this,arguments)};e.getSubtree=function(H){var m=[H];!q(H)&&!d(H)||z(H)||e.traverse(H,!0,function(v,A){var I=null!=A&&e.isTreeEdge(A);I&&0>mxUtils.indexOf(m,A)&&m.push(A);(null==A||I)&&0>mxUtils.indexOf(m,v)&&m.push(v);return null==A||I});return m};var R=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){R.apply(this,arguments);(q(this.state.cell)||d(this.state.cell))&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
l.appendChild(q);f.appendChild(l);this.container=f},ConnectionPointsDialog=function(b,f){function l(){null!=q&&q.destroy()}var d=document.createElement("div");d.style.userSelect="none";var q=null;this.init=function(){function u(N,H,m){N=new mxCell("",new mxGeometry(N,H,6,6),"shape=mxgraph.basic.x;fillColor=#29b6f2;strokeColor=#29b6f2;points=[];rotatable=0;resizable=0;connectable=0;editable=0;");N.vertex=!0;N.cp=!0;N.constObj=m;return U.addCell(N)}function z(N){N=U.getSelectionCells();U.deleteCells(N)} | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxResources.get("download"),!1,!1,y,null,1<G,B,n,t,p);y=this.isServices(G)?4<G?390:280:160;this.showDialog(c.container,420,y,!0,!0)}c.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(c,e,k,n,p,t){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
ta,ua,Da,Ea,Ta,Ka){if(0<Ea){var Sa=Array(Ea);ta=null!=ta?ta.split(","):[];for(var Ia=0;Ia<Ea;Ia++)Sa[Ia]=null!=ta[Ia]?ta[Ia]:null!=Da?Da:"";fa.push({name:qa,values:Sa,type:ua,defVal:Da,parentRow:Ta,flipBkg:Ka,size:Ea})}return document.createElement("div")}function X(qa,ta,ua){var Da=document.createElement("input");Da.type="checkbox";Da.checked="1"==ta;mxEvent.addListener(Da,"change",function(){M(qa,Da.checked?"1":"0",ua)});return Da}function Z(qa,ta,ua,Da,Ea){var Ta=ua.dispName,Ka=ua.type,Sa=document.createElement("tr"); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"...",function(){var Z=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(Q.value),parentChildSpacing:parseInt(T.value),siblingSpacing:parseInt(X.value)}}];d.hideDialog();d.showCustomLayoutDialog(JSON.stringify(Z,null,2))});M.className="geBtn";F=new CustomDialog(d,F,function(){null==A&&(A=2);d.loadOrgChartLayouts(x)},null,null,null,M);d.showDialog(F.container,355,140,!0,!0)},v,null,u());m.addSeparator(v);m.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){d.tryAndHandle(mxUtils.bind(this, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxUtils.bind(this,function(){this.save(b,f)})),l.handleFileError(D,null==D||"AbortError"!=D.name))});try{b==l.getTitle()?l.save(!0,u,z):l.saveAs(b,u,z)}catch(D){z(D)}}),d)}};App.prototype.getExtensionForService=function(b){b=this.getServiceForName(b);return null!=b?b.extension:".drawio"}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.model.getCell(g[F]);null!=Q&&x.push(Q)}return x};var N=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(g){return N.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(g))};Graph.prototype.setHiddenTags=function(g){this.hiddenTags=g;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(g){var x=mxUtils.indexOf(this.hiddenTags,g);0>x?this.hiddenTags.push(g):0<=x&&this.hiddenTags.splice(x,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
V.preventDefault()}function K(V){V.stopPropagation();V.preventDefault();C=!1;p=z(V);if(null!=n)null!=p&&p<c.children.length?(E.splice(p>n?p-1:p,0,E.splice(n,1)[0]),c.insertBefore(c.children[n],c.children[p])):(E.push(E.splice(n,1)[0]),c.appendChild(c.children[n]));else if(0<V.dataTransfer.files.length)b.importFiles(V.dataTransfer.files,0,0,b.maxImageSize,G(V));else if(0<=mxUtils.indexOf(V.dataTransfer.types,"text/uri-list")){var R=decodeURIComponent(V.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(R)||
/(\.png)($|\?)/i.test(R)||/(\.gif)($|\?)/i.test(R)||/(\.svg)($|\?)/i.test(R))&&b.loadImage(R,function(O){D(R,null,0,0,O.width,O.height);c.scrollTop=c.scrollHeight})}V.stopPropagation();V.preventDefault()}var E=[];l=document.createElement("div");l.style.height="100%";var U=document.createElement("div");U.style.whiteSpace="nowrap";U.style.height="40px";l.appendChild(U);mxUtils.write(U,mxResources.get("filename")+":");null==f&&(f=b.defaultLibraryName+".xml");var J=document.createElement("input");J.setAttribute("value", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.addMenuItem(A,"mergeCells"):(1<x.style.colspan||1<x.style.rowspan)&&this.addMenuItem(A,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems=function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}c.actions.get("print").funct=function(){c.showDialog((new PrintDialog(c)).container, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"")+"/log?severity="+t+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(c)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(k)+(null!=n?":colno:"+encodeURIComponent(n):"")+(""!=p.stack?"&stack="+encodeURIComponent(p.stack):""))}catch(C){}try{y||null==window.console||console.error(t,c,e,k,n,p)}catch(C){}}};EditorUi.logEvent=function(c){if("1"==urlParams.dev)EditorUi.debug("logEvent",c);else if(EditorUi.enableLogging)try{var e=null!=window.DRAWIO_LOG_URL?
window.DRAWIO_LOG_URL:"";(new Image).src=e+"/images/1x1.png?v="+encodeURIComponent(EditorUi.VERSION)+(null!=c?"&data="+encodeURIComponent(JSON.stringify(c)):"")}catch(k){}};EditorUi.sendReport=function(c,e){if("1"==urlParams.dev)EditorUi.debug("sendReport",c);else if(EditorUi.enableLogging)try{e=null!=e?e:5E4,c.length>e&&(c=c.substring(0,e)+"\n...[SHORTENED]"),mxUtils.post("/email","version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&data="+encodeURIComponent(c))}catch(k){}}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.currentPage!=this.pages[0]&&y.push("page-id="+this.currentPage.getId());return y};EditorUi.prototype.createLink=function(c,e,k,n,p,t,y,C,G,B){G=this.createUrlParameters(c,e,k,n,p,t,G);c=this.getCurrentFile();e=!0;null!=y?k="#U"+encodeURIComponent(y):(c=this.getCurrentFile(),C||null==c||c.constructor!=window.DriveFile?k="#R"+encodeURIComponent(k?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(k="#"+c.getHash(),e=!1));e&&
null!=c&&null!=c.getTitle()&&c.getTitle()!=this.defaultFilename&&G.push("title="+encodeURIComponent(c.getTitle()));B&&1<k.length&&(G.push("open="+k.substring(1)),k="");return(n&&"1"!=urlParams.dev?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<G.length?"?"+G.join("&"):"")+k};EditorUi.prototype.createHtml=function(c,e,k,n,p,t,y,C,G,B,V,R){this.getBasenames();var O={};""!= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
d,J,u,z),K&&!E?J.y=k.y:E&&!K&&(J.x=k.x),k.y!=J.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),k.x!=J.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),J;V(!0,!0);return b.apply(this,arguments)};var f=mxGuide.prototype.setVisible;mxGuide.prototype.setVisible=function(d){f.call(this,d);var q=this.guidesArrVer,u=this.guidesArrHor;if(null!=q)for(var z=0;z<q.length;z++)q[z].node.style.visibility=d?"visible":"hidden";if(null!=
u)for(z=0;z<u.length;z++)u[z].node.style.visibility=d?"visible":"hidden"};var l=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){l.call(this);var d=this.guidesArrVer,q=this.guidesArrHor;if(null!=d){for(var u=0;u<d.length;u++)d[u].destroy();this.guidesArrVer=null}if(null!=q){for(u=0;u<q.length;u++)q[u].destroy();this.guidesArrHor=null}}})();function mxRuler(b,f,l,d){function q(){var y=b.diagramContainer;U.style.top=y.offsetTop-L+"px";U.style.left=y.offsetLeft-L+"px";U.style.width=(l?0:y.offsetWidth)+L+"px";U.style.height=(l?y.offsetHeight:0)+L+"px"}function u(y,C,G){if(null!=z)return y;var B;return function(){var V=this,R=arguments,O=G&&!B;clearTimeout(B);B=setTimeout(function(){B=null;G||y.apply(V,R)},C);O&&y.apply(V,R)}}var z=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"geCommentActionLnk";mxUtils.write(Z,S);X.appendChild(Z);mxEvent.addListener(Z,"click",function(Y){W(Y,O);Y.preventDefault();mxEvent.consume(Y)});Q.appendChild(X);T&&(X.style.display="none")}function A(){function S(X){W.push(T);if(null!=X.replies)for(var Z=0;Z<X.replies.length;Z++)T=T.nextSibling,S(X.replies[Z])}var W=[],T=g;S(O);return{pdiv:T,replies:W}}function I(S,W,T,X,Z){function Y(){K(aa);O.addReply(ca,function(ra){ca.id=ra;O.replies.push(ca);U(aa);T&&T()},function(ra){ba();E(aa);b.handleError(ra,
null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},X,Z)}function ba(){D(ca,aa,function(ra){Y()},!0)}var fa=A().pdiv,ca=b.newComment(S,b.getCurrentUser());ca.pCommentId=O.id;null==O.replies&&(O.replies=[]);var aa=J(ca,O.replies,fa,H+1);W?ba():Y()}if(m||!O.isResolved){y.style.display="none";var g=document.createElement("div");g.className="geCommentContainer";g.setAttribute("data-commentId",O.id);g.style.marginLeft=20*H+5+"px";O.isResolved&&!Editor.isDarkMode()&&(g.style.backgroundColor= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
y);window.setTimeout(mxUtils.bind(this,function(){H()}),V)});mxEvent.addListener(R,"click",mxUtils.bind(this,function(v){var A=mxEvent.getSource(v);A!=P&&A!=N?(null!=k&&k(),H(),mxEvent.consume(v)):m()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(R.style,"transform",C)}),V/2);window.setTimeout(m,p?4E3:3E4);B=!0}return B};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
V(la.url,la.libs,la.title,la.tooltip?la.tooltip:la.title,la.select,la.imgUrl,la.info,la.onClick,la.preview,la.noImg,la.clibs);da&&la.click();da=!1}}function y(da,la,ma,oa,ia,ka){if(null!=da&&mxUtils.isAncestorNode(document.body,oa)){da=mxUtils.parseXml(da);da=Editor.parseDiagramNode(da.documentElement);var wa=new mxCodec(da.ownerDocument),sa=new mxGraphModel;wa.decode(da,sa);da=sa.root.getChildAt(0).children;b.sidebar.createTooltip(oa,da,Math.min((window.innerWidth||document.documentElement.clientWidth||
document.body.clientWidth)-80,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-80,800),null!=ia?mxResources.get(ia):null,!0,new mxPoint(la,ma),!0,function(){M=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display;null!=ka&&B(oa,null,null,ka,infoObj,clibs)},!0,!1)}}function C(){var da=document.createElement("div");da.style.position="absolute";da.style.overflow="visible";da.style.left="8px";da.style.right="8px";da.style.bottom="8px";da.style.top= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"style"):M.createElement("style");g.setAttribute("type","text/css");mxUtils.setTextContent(g,x);F.appendChild(g)}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(g,x,F){var M=mxClient.IS_FF?8192:16384;return Math.min(F,Math.min(M/g,M/x))};Editor.prototype.exportToCanvas=function(g,x,F,M,Q,S,W,T,X,Z,Y,ba,fa,ca,aa,ra,za,Ba){try{S=null!=S?S:!0;W=null!=W?W:!0;ba=null!=ba?ba:this.graph;fa=null!=fa?fa:0;var ea= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
arguments))};var n=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(g,x,F,M,Q,S,W,T,X,Z,Y){n.apply(this,arguments);Graph.processFontAttributes(Y)};var p=mxText.prototype.redraw;mxText.prototype.redraw=function(){p.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(g,x,F,M){function Q(){for(var ra=T.getSelectionCells(),za=[],Ba=0;Ba<ra.length;Ba++)T.isCellVisible(ra[Ba])&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
O=parseFloat(m[0].getAttribute("height")))}k(G.result,R,O)}catch(v){n(v)}};V.src=G.result};G.onerror=function(B){n(B)}}else n(C)};y.onerror=function(C){n(C)};y.send()};EditorUi.prototype.insertAsPreText=function(c,e,k){var n=this.editor.graph,p=null;n.getModel().beginUpdate();try{p=n.insertVertex(null,null,"<pre>"+c+"</pre>",e,k,1,1,"text;html=1;align=left;verticalAlign=top;"),n.updateCellSize(p,!0)}finally{n.getModel().endUpdate()}return p};EditorUi.prototype.insertTextAt=function(c,e,k,n,p,t,y, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
g+'";\nsrc: url("'+x+'");\n}'),g=document.createElement("style"),mxUtils.write(g,F));return g};Graph.addFont=function(g,x,F){if(null!=g&&0<g.length&&null!=x&&0<x.length){var M=g.toLowerCase();if("helvetica"!=M&&"arial"!=g&&"sans-serif"!=M){var Q=Graph.customFontElements[M];null!=Q&&Q.url!=x&&(Q.elt.parentNode.removeChild(Q.elt),Q=null);null==Q?(Q=x,"http:"==x.substring(0,5)&&(Q=PROXY_URL+"?url="+encodeURIComponent(x)),Q={name:g,url:x,elt:Graph.createFontElement(g,Q)},Graph.customFontElements[M]=Q,
Graph.recentCustomFonts[M]=Q,x=document.getElementsByTagName("head")[0],null!=F&&("link"==Q.elt.nodeName.toLowerCase()?(Q.elt.onload=F,Q.elt.onerror=F):F()),null!=x&&x.appendChild(Q.elt)):null!=F&&F()}else null!=F&&F()}else null!=F&&F();return g};Graph.getFontUrl=function(g,x){g=Graph.customFontElements[g.toLowerCase()];null!=g&&(x=g.url);return x};Graph.processFontAttributes=function(g){g=g.getElementsByTagName("*");for(var x=0;x<g.length;x++){var F=g[x].getAttribute("data-font-src");if(null!=F){var M= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.styleElt=document.createElement("style");Editor.styleElt.type="text/css";Editor.styleElt.innerHTML=Editor.createMinimalCss();document.getElementsByTagName("head")[0].appendChild(Editor.styleElt);Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var q=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(J){q.apply(this, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
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{D.container.style.visibility="";D.model.endUpdate();D.cellRenderer.redraw=U;this.changeListenerEnabled=L;l||(q.history=u,q.indexOfNextAdd=z,q.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)E!=D.mathEnabled?(this.ui.editor.updateGraphComponents(),D.refresh()):(K!=D.foldingEnabled?D.view.revalidate():
D.view.validate(),D.sizeDidChange());null!=this.sync&&this.isRealtime()&&!d&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages));this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",[this],"patches",b,"resolver",f,"undoable",l)}return b}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
M.length&&(Q=M[Math.max(0,Math.min(M.length-1,urlParams.page||0))])),null!=Q&&(g=Editor.parseDiagramNode(Q,F)));null==g||"mxGraphModel"==g.nodeName||x&&"mxfile"==g.nodeName||(g=null);return g};Editor.parseDiagramNode=function(g,x){var F=mxUtils.trim(mxUtils.getTextContent(g)),M=null;0<F.length?(g=Graph.decompress(F,null,x),null!=g&&0<g.length&&(M=mxUtils.parseXml(g).documentElement)):(g=mxUtils.getChildNodes(g),0<g.length&&(M=mxUtils.createXmlDocument(),M.appendChild(M.importNode(g[0],!0)),M=M.documentElement));
return M};Editor.getDiagramNodeXml=function(g){var x=mxUtils.getTextContent(g),F=null;0<x.length?F=Graph.decompress(x):null!=g.firstChild&&(F=mxUtils.getXml(g.firstChild));return F};Editor.extractGraphModelFromPdf=function(g){g=g.substring(g.indexOf(",")+1);g=window.atob&&!mxClient.IS_SF?atob(g):Base64.decode(g,!0);if("%PDF-1.7"==g.substring(0,8)){var x=g.indexOf("EmbeddedFile");if(-1<x){var F=g.indexOf("stream",x)+9;if(0<g.substring(x,F).indexOf("application#2Fvnd.jgraph.mxfile"))return x=g.indexOf("endstream", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(){b.spinner.stop();if(null==b.linkPicker){var y=b.drive.createLinkPicker();b.linkPicker=y.setCallback(function(C){LinkDialog.filePicked(C)}).build()}b.linkPicker.setVisible(!0)}))});"undefined"!=typeof Dropbox&&"undefined"!=typeof Dropbox.choose&&D(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),function(){Dropbox.choose({linkType:"direct",cancel:function(){},success:function(y){E.value=y[0].link;E.focus()}})});null!=b.oneDrive&&D(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
H.readAsText(N)}else this.doImportVisio(N,e,C,n)}catch(m){C(m)}else try{""==P.responseType||"text"==P.responseType?C({message:P.responseText}):(H=new FileReader,H.onload=function(){try{C({message:JSON.parse(H.result).Message})}catch(m){C(m)}},H.readAsText(P.response))}catch(m){C({})}});P.send(B)}else if(y.clear())try{this.doImportVisio(c,e,C,n)}catch(N){C(N)}}else C({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?G():(this.loadingExtensions= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
if("["==aa.charAt(0)){var oa=Z;G.view.validate();this.executeLayouts(G.createLayouts(JSON.parse(aa)),function(){ma();oa()});Z=null}else if("circle"==aa){var ia=new mxCircleLayout(G);ia.disableEdgeStyle=!1;ia.resetEdges=!1;var ka=ia.isVertexIgnored;ia.isVertexIgnored=function(Ca){return ka.apply(this,arguments)||0>mxUtils.indexOf(t,Ca)};this.executeLayout(function(){ia.execute(G.getDefaultParent());ma()},!0,Z);Z=null}else if("horizontaltree"==aa||"verticaltree"==aa||"auto"==aa&&Ua.length==2*t.length- | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.addMenuItem(m,"export",v).firstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...");mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"min"!=Editor.currentTheme||this.addMenuItems(m,["publishLink"],v);d.mode==App.MODE_ATLAS||"1"==urlParams.extAuth||"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||(m.addSeparator(v),d.menus.addSubmenu("embed",m,v))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(m,v){function A(x){x.pickFile(function(F){d.spinner.spin(document.body,
mxResources.get("loading"))&&x.getFile(F,function(M){var Q="data:image/"==M.getData().substring(0,11)?g(M.getTitle()):"text/xml";/\.svg$/i.test(M.getTitle())&&!d.editor.isDataSvg(M.getData())&&(M.setData(Editor.createSvgDataUri(M.getData())),Q="image/svg+xml");I(M.getData(),Q,M.getTitle())},function(M){d.handleError(M,null!=M?mxResources.get("errorLoadingFile"):null)},x==d.drive)},!0)}var I=mxUtils.bind(this,function(x,F,M){var Q=q.view,S=q.getGraphBounds(),W=q.snap(Math.ceil(Math.max(0,S.x/Q.scale- | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(H){t=null!=t?t:"pdf"==e?"application/pdf":"image/"+e;if(null!=n)try{this.exportFile(n,V,t,!0,R,H)}catch(m){this.handleError(m)}else this.spinner.spin(document.body,mxResources.get("saving"))&&N.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=N.getStatus()&&299>=N.getStatus())try{this.exportFile(N.getText(),V,t,!0,R,H)}catch(m){this.handleError(m)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(m){this.spinner.stop();this.handleError(m)}))}), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxResources.get("download"),!1,!1,y,null,1<G,B,n,t,p);y=this.isServices(G)?4<G?390:280:160;this.showDialog(c.container,420,y,!0,!0)}c.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(c,e,k,n,p,t){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,
e,k){e(null)};EditorUi.prototype.exportSvg=function(c,e,k,n,p,t,y,C,G,B,V,R,O,P){if(this.spinner.spin(document.body,mxResources.get("export")))try{var N=this.editor.graph.isSelectionEmpty();k=null!=k?k:N;var H=e?null:this.editor.graph.background;H==mxConstants.NONE&&(H=null);null==H&&0==e&&(H=V?this.editor.graph.defaultPageBackgroundColor:"#ffffff");var m=this.editor.graph.getSvg(H,c,y,C,null,k,null,null,"blank"==B?"_blank":"self"==B?"_top":null,null,!O,V,R);n&&this.editor.graph.addSvgShadow(m);var v= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
return V}),B=!0);return B};var y=p.stop;p.stop=function(){y.call(this);this.active=!1;null!=p.status&&null!=p.status.parentNode&&p.status.parentNode.removeChild(p.status);p.status=null};p.pause=function(){return function(){}};return p};EditorUi.prototype.isCompatibleString=function(c){try{var e=mxUtils.parseXml(c),k=this.editor.extractGraphModel(e.documentElement,!0);return null!=k&&0==k.getElementsByTagName("parsererror").length}catch(n){}return!1};EditorUi.prototype.isVisioData=function(c){return 8<
c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&6==c.charCodeAt(3))};EditorUi.prototype.isRemoteVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
null!=x&&x(F,M)};C.call(this,A,I,g)};u.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(e.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var G=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(A,I,g){e.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(A,["zoomIn","zoomOut","-"],null,g);G.apply(this,arguments);e.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(A,["-","addToScratchpad"],null,g);e.isSelectionEmpty()&&
"simple"==Editor.currentTheme&&this.addMenuItems(A,["-","exitGroup","home"],null,g)};var B=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(A,I,g){if(c.editor.graph.isSelectionEmpty())B.apply(this,arguments),c.menus.addMenuItems(A,["copyAsImage"],null,g);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(A,I,g):this.addPopupMenuArrangeItems(A,I,g),this.addMenuItems(A,"- cut copy copyAsImage duplicate -".split(" "),null,g),this.isShowCellEditItems()||this.addPopupDeleteItem(A, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
l?E=new mxHierarchicalLayout(u,mxConstants.DIRECTION_WEST):"circle"==l?E=new mxCircleLayout(u):(E=new mxFastOrganicLayout(u,!1),E.forceConstant=80);if(null!=E){var U=function(k,n){u.getModel().beginUpdate();try{null!=k&&k(),E.execute(u.getDefaultParent(),K)}catch(p){throw p;}finally{k=new mxMorphing(u),k.addListener(mxEvent.DONE,mxUtils.bind(this,function(){u.getModel().endUpdate();null!=n&&n()})),k.startAnimation()}},J=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(k,n, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
aa.style.whiteSpace="nowrap";aa.style.position="absolute";aa.style.overflow="hidden";aa.style.bottom="6px";aa.style.height="42px";aa.style.right="10px";aa.style.left="10px";T.isEnabled()&&(aa.appendChild(ba),aa.appendChild(fa),Z.appendChild(aa));null!=M&&aa.appendChild(M);return{div:Z,refresh:ca}};Graph.prototype.getCustomFonts=function(){var g=this.extFonts;g=null!=g?g.slice():[];for(var x in Graph.customFontElements){var F=Graph.customFontElements[x];g.push({name:F.name,url:F.url})}return g};Graph.prototype.setFont= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
fa:null)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}function B(da,la,ma,oa,ia,ka,wa){null!=aa&&(aa.style.backgroundColor="transparent",aa.style.border="1px solid transparent");I.removeAttribute("disabled");ca=la;ba=ma;fa=ka;aa=da;ra=oa;za=wa;Ba=ia;aa.style.backgroundColor=D;aa.style.border=L}function V(da,la,ma,oa,ia,ka,wa,sa,Ja,Ha,ya){function La(Na,Ya){null==Ma?(Oa=Na,Oa=/^https?:\/\//.test(Oa)&&!b.editor.isCorsEnabledForUrl(Oa)?PROXY_URL+"?url="+encodeURIComponent(Oa):
TEMPLATE_PATH+"/"+Oa,mxUtils.get(Oa,mxUtils.bind(this,function(Wa){200<=Wa.getStatus()&&299>=Wa.getStatus()&&(Ma=Wa.getText());Ya(Ma,Oa)}))):Ya(Ma,Oa)}function Ca(Na,Ya){if(null==da||x||b.sidebar.currentElt==va)b.sidebar.hideTooltip();else if(b.sidebar.hideTooltip(),null!=F){var Wa="<mxfile><diagram>"+Graph.compress('<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" value="" style="shape=image;image='+F.src+';imageAspect=1;" parent="1" vertex="1"><mxGeometry width="'+F.naturalWidth+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
k?(c=k?c:btoa(unescape(encodeURIComponent(c))),n.document.write('<html><img style="max-width:100%;" src="data:'+e+";base64,"+c+'"/></html>')):n.document.write("<html>"+c+"</html>"):n.document.write("<html><pre>"+mxUtils.htmlEntities(c,!1)+"</pre></html>"),n.document.close())};var d=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"geCommentActionLnk";mxUtils.write(Z,S);X.appendChild(Z);mxEvent.addListener(Z,"click",function(Y){W(Y,O);Y.preventDefault();mxEvent.consume(Y)});Q.appendChild(X);T&&(X.style.display="none")}function A(){function S(X){W.push(T);if(null!=X.replies)for(var Z=0;Z<X.replies.length;Z++)T=T.nextSibling,S(X.replies[Z])}var W=[],T=g;S(O);return{pdiv:T,replies:W}}function I(S,W,T,X,Z){function Y(){K(aa);O.addReply(ca,function(ra){ca.id=ra;O.replies.push(ca);U(aa);T&&T()},function(ra){ba();E(aa);b.handleError(ra, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"120px",E.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",E.style.backgroundPosition="center 65%",E.style.backgroundRepeat="no-repeat",z=document.createElement("div"),z.style.position="absolute",z.style.width="420px",z.style.top="58%",z.style.textAlign="center",z.style.fontSize="18px",z.style.color="#a0c3ff",mxUtils.write(z,mxResources.get("dragImagesHere")),E.appendChild(z));E.appendChild(D);this.container=E},LinkDialog=function(b,f,l,d,q,u,z){function D(y,C,G){G=mxUtils.button("",G);
G.className="geBtn";G.setAttribute("title",C);C=document.createElement("img");C.style.height="26px";C.style.width="26px";C.setAttribute("src",y);G.style.minWidth="42px";G.style.verticalAlign="middle";G.appendChild(C);t.appendChild(G)}var L=document.createElement("div");L.style.height="100%";mxUtils.write(L,mxResources.get("editLink")+":");var K=document.createElement("div");K.className="geTitle";K.style.backgroundColor="transparent";K.style.borderColor="transparent";K.style.whiteSpace="nowrap";K.style.textOverflow= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
D=document.createElement("div");D.style.height="300px";D.style.width="300px";D.style.display="inline-flex";D.style.justifyContent="center";D.style.alignItems="center";D.style.position="absolute";var L=document.createElement("img");L.onload=function(){function B(){E.model.setStyle(c,e+q())}E=new Graph(K);E.autoExtend=!1;E.autoScroll=!1;E.setGridEnabled(!1);E.setEnabled(!0);E.setPanning(!1);E.setConnectable(!1);E.getRubberband().setEnabled(!1);E.graphHandler.allowLivePreview=!1;var V=E.createVertexHandler; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"cursor:pointer;");c&&(H+="max-width:100%;");var m="";k&&(m=' width="'+Math.round(B.width)+'" height="'+Math.round(B.height)+'"');y('<img src="'+P+'"'+m+(""!=H?' style="'+H+'"':"")+N+"/>")}var B=this.editor.graph.getGraphBounds(),V=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(P){var N=n?this.getFileData(!0):null;P=this.createImageDataUri(P,N,"png");G(P)}),null,null,null,mxUtils.bind(this,function(P){C({message:mxResources.get("unknownError")})}), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
c.shortcut):z.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(J){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=J?J:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};DiagramFormatPanel.prototype.isMathOptionVisible=function(){return!0};var D=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows(); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxResources.get("download"),!1,!1,y,null,1<G,B,n,t,p);y=this.isServices(G)?4<G?390:280:160;this.showDialog(c.container,420,y,!0,!0)}c.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(c,e,k,n,p,t){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
console.log("Error in MathJax.typeset: "+T.toString())}};window.MathJax=null!=x?x:{options:{skipHtmlTags:{"[+]":["text"]}},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var W=0;W<Editor.mathJaxQueue.length;W++)Editor.doMathJaxRender(Editor.mathJaxQueue[W])}}};Editor.MathJaxRender=function(W){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(W):Editor.mathJaxQueue.push(W)}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
ma[Xa],0<ja.length&&(oa=document.createElement("div"),oa.className="geTempDlgImportCat",oa.innerText=mxResources.get(Xa,null,Xa),aa.appendChild(oa),B(ja,da,la,null,!0))}function V(ja,da){pa.innerText="";y();var la=Math.floor(pa.offsetWidth/150)-1;da=!da&&ja.length>la?la:ja.length;for(var ma=0;ma<da;ma++){var oa=ja[ma];oa.isCategory=!0;var ia=document.createElement("div"),ka=mxResources.get(oa.title);null==ka&&(ka=oa.title.substring(0,1).toUpperCase()+oa.title.substring(1));ia.className="geTempDlgNewDiagramCatItem";
ia.setAttribute("title",ka);ka=mxUtils.htmlEntities(ka);15<ka.length&&(ka=ka.substring(0,15)+"…");null==M&&(G(!0),y(ia,"geTempDlgNewDiagramCatItemActive",oa));var wa=document.createElement("div");wa.className="geTempDlgNewDiagramCatItemImg";var sa=document.createElement("img");sa.src=NEW_DIAGRAM_CATS_PATH+"/"+oa.img;wa.appendChild(sa);ia.appendChild(wa);wa=document.createElement("div");wa.className="geTempDlgNewDiagramCatItemLbl";wa.innerHTML=ka;ia.appendChild(wa);pa.appendChild(ia);(function(Ja,
Ha){mxEvent.addListener(ia,"click",function(){M!=Ha&&(G(!0),y(Ha,"geTempDlgNewDiagramCatItemActive",Ja))});mxEvent.addListener(ia,"dblclick",C)})(oa,ia)}ia=document.createElement("div");ia.className="geTempDlgNewDiagramCatItem";ka=mxResources.get("showAllTemps");ia.setAttribute("title",ka);wa=document.createElement("div");wa.className="geTempDlgNewDiagramCatItemImg";wa.innerText="...";wa.style.fontSize="32px";ia.appendChild(wa);wa=document.createElement("div");wa.className="geTempDlgNewDiagramCatItemLbl";
wa.innerText=ka;ia.appendChild(wa);pa.appendChild(ia);mxEvent.addListener(ia,"click",function(){function Ja(){var ya=Ha.querySelector(".geTemplateDrawioCatLink");null!=ya?ya.click():setTimeout(Ja,200)}fa=!0;var Ha=A.querySelector(".geTemplatesList");Ha.style.display="block";Ba.style.width="";Fa.style.display="";Fa.value="";Y=null;Ja()});ca.style.display=ja.length<=la?"none":""}function R(ja,da,la){function ma(Oa,Xa){Oa=mxResources.get(Oa,null,Oa.substring(0,1).toUpperCase()+Oa.substring(1));var Qa= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var P=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(H){P.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=H?"":"none")};var N=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(H,m){N.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var l= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"cells",[N])),b.fireEvent(new mxEventObject("freehandInserted","cell",N))}finally{b.model.endUpdate()}n&&b.setSelectionCells([N])}}for(N=0;N<q.length;N++)q[N].parentNode.removeChild(q[N]);d=null;q=[];z=[]}y(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(P,N){P=N.getProperty("eventName");N=N.getProperty("event");P==mxEvent.MOUSE_MOVE&&e&&(null!=N.sourceState&&N.sourceState.setCursor("crosshair"),N.consume())}));b.addMouseListener({mouseDown:mxUtils.bind(this,function(P,N){if(b.isEnabled()&&
!b.isCellLocked(b.getDefaultParent())&&(P=N.getEvent(),e&&!mxEvent.isPopupTrigger(P)&&!mxEvent.isMultiTouchEvent(P))){var H=parseFloat(b.currentVertexStyle[mxConstants.STYLE_STROKEWIDTH]||1);H=Math.max(1,H*b.view.scale);var m=B();d=document.createElementNS("http://www.w3.org/2000/svg","path");d.setAttribute("fill",t?m:"none");d.setAttribute("stroke",m);d.setAttribute("stroke-width",H);"1"==b.currentVertexStyle[mxConstants.STYLE_DASHED]&&(m=b.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN]||"3 3",
m=m.split(" ").map(function(v){return parseFloat(v)*H}).join(" "),d.setAttribute("stroke-dasharray",m));c=[];P=V(P);R(P);u="M"+P.x+" "+P.y;z.push(P);D=[];d.setAttribute("d",t?PerfectFreehand.getSvgPathFromStroke([[P.x,P.y]],p):u);f.appendChild(d);N.consume()}}),mouseMove:mxUtils.bind(this,function(P,N){if(d&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){P=N.getEvent();P=V(P);R(P);var H=O(0);if(H)if(z.push(H),t){var m=[];for(H=0;H<z.length;H++)m.push([z[H].x,z[H].y]);D=[];for(var v=2;v<c.length;v+= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"xlink:href");F("img","src");0==Q&&x(g)};Editor.base64Encode=function(g){for(var x="",F=0,M=g.length,Q,S,W;F<M;){Q=g.charCodeAt(F++)&255;if(F==M){x+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(Q>>2);x+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Q&3)<<4);x+="==";break}S=g.charCodeAt(F++);if(F==M){x+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(Q>>2);x+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Q&
3)<<4|(S&240)>>4);x+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((S&15)<<2);x+="=";break}W=g.charCodeAt(F++);x+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(Q>>2);x+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Q&3)<<4|(S&240)>>4);x+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((S&15)<<2|(W&192)>>6);x+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(W&63)}return x}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
null==this.cachedGoogleFonts[T]?(M++,this.loadUrl(T,mxUtils.bind(this,function(X){this.cachedGoogleFonts[T]=X;F.push(X+"\n");M--;Q()}),mxUtils.bind(this,function(X){M--;F.push("@import url("+T+");\n");Q()}))):F.push(this.cachedGoogleFonts[T]+"\n"):F.push('@font-face {font-family: "'+W+'";src: url("'+T+'")}\n')})(x[S].name,x[S].url);Q()}else g()};Editor.prototype.addMathCss=function(g){g=g.getElementsByTagName("defs");if(null!=g&&0<g.length)for(var x=document.getElementsByTagName("style"),F=0;F<x.length;F++){var M=
mxUtils.getTextContent(x[F]);0>M.indexOf("mxPageSelector")&&0<M.indexOf("MathJax")&&g[0].appendChild(x[F].cloneNode(!0))}};Editor.prototype.addFontCss=function(g,x){x=null!=x?x:this.absoluteCssFonts(this.fontCss);if(null!=x){var F=g.getElementsByTagName("defs"),M=g.ownerDocument;0==F.length?(F=null!=M.createElementNS?M.createElementNS(mxConstants.NS_SVG,"defs"):M.createElement("defs"),null!=g.firstChild?g.insertBefore(F,g.firstChild):g.appendChild(F)):F=F[0];g=null!=M.createElementNS?M.createElementNS(mxConstants.NS_SVG, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
2});var p=null,t=null,y=null,C=null,G=null,B=null,V=null;d.actions.addAction("testPerformance",mxUtils.bind(this,function(){null!=p?(q.view.revalidate=p,p=null):(p=q.view.revalidate,q.view.revalidate=function(){var m=Date.now(),v=p.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",[this],"time",Date.now()-m+" ms","args",arguments);return v});null!=t?(d.selectPage=t,t=null):(t=d.selectPage,d.selectPage=function(){var m=Date.now(),v=t.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.selectPage",
[this],"time",Date.now()-m+" ms","args",arguments);return v});null!=y?(d.diffPages=y,y=null):(y=d.diffPages,d.diffPages=function(){var m=Date.now(),v=y.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-m+" ms","args",arguments);return v});null!=C?(d.patchPages=C,C=null):(C=d.patchPages,d.patchPages=function(){var m=Date.now(),v=C.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",[this],"time",Date.now()-m+" ms","args",arguments); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var c=this.getCurrentFile();window.location.hash=null!=c?c.getHash():""}));else{var J=b.charAt(0);b=decodeURIComponent(b.substring(1));K.getFile(b,mxUtils.bind(this,function(c){this.spinner.stop();this.fileLoaded(c);var e=this.getCurrentFile();null==e?(window.location.hash="",this.showSplash()):this.editor.chromeless&&!this.editor.editable?(e.getHash=function(){return J+b},window.location.hash="#"+e.getHash()):c==e&&null==c.getMode()&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.graph.shadowVisible?"1":"0");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(M=this.graph.extFonts.map(function(Q){return Q.name+"^"+Q.url}),F.setAttribute("extFonts",M.join("|")));return F};Editor.prototype.isDataSvg=function(g){try{var x=mxUtils.parseXml(g).documentElement.getAttribute("content");if(null!=x&&(null!=x&&"<"!=x.charAt(0)&&"%"!=x.charAt(0)&&(x=unescape(window.atob?atob(x):Base64.decode(cont,x))),null!=x&&"%"==x.charAt(0)&&(x=decodeURIComponent(x)),null!=x&&0<x.length)){var F=
mxUtils.parseXml(x).documentElement;return"mxfile"==F.nodeName||"mxGraphModel"==F.nodeName}}catch(M){}return!1};Editor.prototype.extractGraphModel=function(g,x,F){return Editor.extractGraphModel.apply(this,arguments)};var l=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(); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
[this],"time",Date.now()-m+" ms","args",arguments);return v});null!=y?(d.diffPages=y,y=null):(y=d.diffPages,d.diffPages=function(){var m=Date.now(),v=y.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-m+" ms","args",arguments);return v});null!=C?(d.patchPages=C,C=null):(C=d.patchPages,d.patchPages=function(){var m=Date.now(),v=C.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",[this],"time",Date.now()-m+" ms","args",arguments);
return v});null!=G?(d.clonePages=G,G=null):(G=d.clonePages,d.clonePages=function(){var m=Date.now(),v=G.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-m+" ms","args",arguments);return v});null!=B?(d.getHashValueForPages=B,B=null):(B=d.getHashValueForPages,d.getHashValueForPages=function(){var m=Date.now(),v=B.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],"time",Date.now()-m+" ms","args",arguments);return v}); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.styleElt=document.createElement("style");Editor.styleElt.type="text/css";Editor.styleElt.innerHTML=Editor.createMinimalCss();document.getElementsByTagName("head")[0].appendChild(Editor.styleElt);Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var q=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(J){q.apply(this, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
(ka?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");A.querySelector("."+da).src="/images/"+la+"-sel.svg";A.querySelector("."+oa).src="/images/"+ia+".svg";return!0}function t(ja,da,la,ma){function oa(sa,Ja){null==ka?(sa=/^https?:\/\//.test(sa)&&!b.editor.isCorsEnabledForUrl(sa)?PROXY_URL+"?url="+encodeURIComponent(sa):TEMPLATE_PATH+"/"+sa,mxUtils.get(sa,mxUtils.bind(this,function(Ha){200<=Ha.getStatus()&&299>=Ha.getStatus()&&(ka=Ha.getText());Ja(ka)}))):Ja(ka)}function ia(sa,Ja,Ha){if(null!=sa&&
mxUtils.isAncestorNode(document.body,da)&&(sa=mxUtils.parseXml(sa),sa=Editor.extractGraphModel(sa.documentElement,!0),null!=sa)){"mxfile"==sa.nodeName&&(sa=Editor.parseDiagramNode(sa.getElementsByTagName("diagram")[0]));var ya=new mxCodec(sa.ownerDocument),La=new mxGraphModel;ya.decode(sa,La);sa=La.root.getChildAt(0).children||[];b.sidebar.createTooltip(da,sa,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-80,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||
document.body.clientHeight)-80,800),null!=ja.title?mxResources.get(ja.title,null,ja.title):null,!0,new mxPoint(Ja,Ha),!0,null,!0);var Ca=document.createElement("div");Ca.className="geTempDlgDialogMask";A.appendChild(Ca);var va=b.sidebar.hideTooltip;b.sidebar.hideTooltip=function(){Ca&&(A.removeChild(Ca),Ca=null,va.apply(this,arguments),b.sidebar.hideTooltip=va)};mxEvent.addListener(Ca,"click",function(){b.sidebar.hideTooltip()})}}var ka=null;if(qa||b.sidebar.currentElt==da)b.sidebar.hideTooltip(); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
ba=Array(Y.length);for(var fa=0;fa<Y.length;fa++)ba[fa]=String.fromCharCode(Y[fa]);ba=ba.join("")}S=null!=S?S:"data:image/png;base64,";ba=S+Editor.base64Encode(ba)}x(ba)}}else null!=F&&(0==Y.getStatus()?F({message:mxResources.get("accessDenied")},Y):404==Y.getStatus()?F({message:mxResources.get("fileNotFound"),code:Y.getStatus()},Y):F({message:this.getErrorMessage(Y)},Y))}),function(Y){null!=F&&F({message:mxResources.get("error")+" "+Y.getStatus()})},X,this.timeout,function(){Q&&null!=F&&F({code:App.ERROR_TIMEOUT,
retry:Z})},T)});Z()}catch(Y){null!=F&&F(Y)}};Editor.prototype.getErrorMessage=function(g){var x=mxResources.get("error")+" "+g.getStatus();try{var F=g.getText(),M=JSON.parse(F);null!=M&&null!=M.error&&null!=M.error.message&&(x=M.error.message+" ("+x+")")}catch(Q){}return x};Editor.prototype.absoluteCssFonts=function(g){var x=null;if(null!=g){var F=g.split("url(");if(0<F.length){x=[F[0]];g=window.location.pathname;var M=null!=g?g.lastIndexOf("/"):-1;0<=M&&(g=g.substring(0,M+1));M=document.getElementsByTagName("base"); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
":");var t="#0000ff",y=null;y=mxUtils.button("",mxUtils.bind(this,function(C){this.pickColor(t||"none",function(G){t=G;k()});mxEvent.consume(C)}));k();y.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";y.style.marginLeft="4px";y.style.height="22px";y.style.width="22px";y.style.position="relative";y.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";y.className="geColorBtn";c.appendChild(y);mxUtils.br(c);return{getColor:function(){return t},getTarget:function(){return n.value}, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(c,e,k,n,p,t,y,C){function G(P){var N=" ",H="";n&&(N=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(null!=V?"&page="+V:"")+(p?"&edit=_blank":"")+(t?"&layers=1":"")+"');}})(this);\"",H+=
"cursor:pointer;");c&&(H+="max-width:100%;");var m="";k&&(m=' width="'+Math.round(B.width)+'" height="'+Math.round(B.height)+'"');y('<img src="'+P+'"'+m+(""!=H?' style="'+H+'"':"")+N+"/>")}var B=this.editor.graph.getGraphBounds(),V=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(P){var N=n?this.getFileData(!0):null;P=this.createImageDataUri(P,N,"png");G(P)}),null,null,null,mxUtils.bind(this,function(P){C({message:mxResources.get("unknownError")})}), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
EditorUi.prototype.chromelessWindowResize=function(){};var K=Menus.prototype.init;Menus.prototype.init=function(){K.apply(this,arguments);var J=this.editorUi;EditorUi.enablePlantUml&&!J.isOffline()&&J.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var k=new ParseDialog(J,mxResources.get("plantUml")+"...","plantUml");J.showDialog(k.container,620,420,!0,!1);k.init()}));J.actions.put("mermaid",new Action(mxResources.get("mermaid")+"...",function(){var k=new ParseDialog(J, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
g.prototype.lineTo=function(S,W){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,S,W),this.lastX=S,this.lastY=W)};g.prototype.moveTo=function(S,W){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,S,W),this.lastX=S,this.lastY=W,this.firstX=S,this.firstY=W)};g.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};g.prototype.quadTo=function(S,W,T,X){this.passThrough? | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"https://app.diagrams.net/";var y=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(A){A=null!=A?A:"";"1"==urlParams.dev&&(A+=(0<A.length?"&":"?")+"dev=1");return y.apply(this,arguments)};var C=e.addClickHandler;e.addClickHandler=function(A,I,g){var x=I;I=function(F,M){if(null==M){var Q=mxEvent.getSource(F);"a"==Q.nodeName.toLowerCase()&&(M=Q.getAttribute("href"))}null!=M&&e.isCustomLink(M)&&(mxEvent.isTouchEvent(F)||!mxEvent.isPopupTrigger(F))&&e.customLinkClicked(M)&&mxEvent.consume(F); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,e,k,n,p,t,y,C){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,e,k,n,p,t,y,C)}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(){k.checked&&(null==e||e.checked)?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")}));mxUtils.br(c);return{getLink:function(){return k.checked?"blank"===t.value?"_blank":p:null},getEditInput:function(){return k},getEditSelect:function(){return t}}};EditorUi.prototype.addLinkSection=function(c,e){function k(){var C=document.createElement("div");C.style.width="100%";C.style.height="100%";C.style.boxSizing="border-box";null!=t&&t!=mxConstants.NONE?(C.style.border="1px solid black", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
b.installResizeHandler(this,!1)},TagsWindow=function(b,f,l,d,q){var u=b.editor.graph,z=null;if(!b.isOffline()||mxClient.IS_CHROMEAPP)z=b.menus.createHelpLink("https://www.drawio.com/blog/tags-in-diagrams"),z.style.marginLeft="8px";var D=b.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return this.window.isVisible()}),null,function(L,K){if(u.isEnabled()){var E=new FilenameDialog(b,"",mxResources.get("add"),function(U){b.hideDialog();if(null!=U&&0<U.length){U=U.split(" ");for(var J=[],c=
0;c<U.length;c++){var e=mxUtils.trim(U[c]);""!=e&&0>mxUtils.indexOf(L,e)&&J.push(e)}0<J.length&&(u.isSelectionEmpty()?K(L.concat(J)):u.addTagsForCells(u.getSelectionCells(),J))}},mxResources.get("enterValue")+" ("+mxResources.get("tags")+")");b.showDialog(E.container,300,80,!0,!0);E.init()}},z);z=D.div;this.window=new mxWindow(mxResources.get("tags"),z,f,l,d,q,!0,!0);this.window.minimumSize=new mxRectangle(0,0,212,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);
this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){D.refresh();this.window.fit()}));b.installResizeHandler(this,!0)},AuthDialog=function(b,f,l,d){var q=document.createElement("div");q.style.textAlign="center";var u=document.createElement("p");u.style.fontSize="16pt";u.style.padding="0px";u.style.margin="0px";u.style.color="gray";mxUtils.write(u,mxResources.get("authorizationRequired"));var z="Unknown",D=document.createElement("img");D.setAttribute("border","0"); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
g[x[F][Q]];null!=S?""!=S&&M.push(S):M.push(x[F][Q])}x[F]=M}};Graph.prototype.getCellsForAction=function(g,x){x=this.getCellsById(g.cells).concat(this.getCellsForTags(g.tags,null,x));if(null!=g.excludeCells){for(var F=[],M=0;M<x.length;M++)0>g.excludeCells.indexOf(x[M].id)&&F.push(x[M]);x=F}return x};Graph.prototype.getCellsById=function(g){var x=[];if(null!=g)for(var F=0;F<g.length;F++)if("*"==g[F]){var M=this.model.getRoot();x=x.concat(this.model.filterDescendants(function(S){return S!=M},M))}else{var Q= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
!1,!0)}finally{G.model.endUpdate()}}}catch(I){if(p)throw I;this.handleError(I)}return C};EditorUi.prototype.updatePageLinks=function(c,e){for(var k=0;k<e.length;k++)this.updatePageLinksForCell(c,e[k].root),null!=e[k].viewState&&this.updateBackgroundPageLink(c,e[k].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(c,e){try{if(null!=e&&Graph.isPageLink(e.originalSrc)){var k=c[e.originalSrc.substring(e.originalSrc.indexOf(",")+1)];null!=k&&(e.originalSrc="data:page/id,"+
k)}}catch(n){}};EditorUi.prototype.updatePageLinksForCell=function(c,e){var k=document.createElement("div"),n=this.editor.graph,p=n.getLinkForCell(e);null!=p&&n.setLinkForCell(e,this.updatePageLink(c,p));if(n.isHtmlLabel(e)){k.innerHTML=Graph.sanitizeHtml(n.getLabel(e));for(var t=k.getElementsByTagName("a"),y=!1,C=0;C<t.length;C++)p=t[C].getAttribute("href"),null!=p&&(t[C].setAttribute("href",this.updatePageLink(c,p)),y=!0);y&&n.labelChanged(e,k.innerHTML)}for(C=0;C<n.model.getChildCount(e);C++)this.updatePageLinksForCell(c, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(g){var x="1"==mxUtils.getValue(g.style,"enumerate",0);x&&null==g.secondLabel?(g.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),g.secondLabel.size=12,g.secondLabel.state=g,g.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(g,g.secondLabel)):x||null==g.secondLabel||(g.secondLabel.destroy(),g.secondLabel=null);x=g.secondLabel;if(null!=x){var F=g.view.scale,M=this.createEnumerationValue(g);g=this.graph.model.isVertex(g.cell)?
new mxRectangle(g.x+g.width-4*F,g.y+4*F,0,0):mxRectangle.fromPoint(g.view.getPoint(g));x.bounds.equals(g)&&x.value==M&&x.scale==F||(x.bounds=g,x.value=M,x.scale=F,x.redraw())}};var R=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){R.apply(this,arguments);if(mxClient.IS_GC&&null!=this.getDrawPane()){var g=this.getDrawPane().parentNode;!this.graph.mathEnabled||mxClient.NO_FO||null!=this.webKitForceRepaintNode&&null!=this.webKitForceRepaintNode.parentNode|| | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
B=new mxAsyncCanvas(this.thumbImageCache);G.images=this.thumbImageCache.images;var V=new mxImageExport;V.drawShape=function(R,O){R.shape instanceof mxShape&&R.shape.checkBounds()&&(O.save(),O.translate(.5,.5),R.shape.paint(O),O.translate(-.5,-.5),O.restore())};V.drawText=function(R,O){};V.drawState(z.getView().getState(z.model.root),B);B.finish(mxUtils.bind(this,function(){try{V.drawState(z.getView().getState(z.model.root),G),z!=this.editor.graph&&null!=z.container.parentNode&&z.container.parentNode.removeChild(z.container)}catch(R){U= | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
(ka?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");A.querySelector("."+da).src="/images/"+la+"-sel.svg";A.querySelector("."+oa).src="/images/"+ia+".svg";return!0}function t(ja,da,la,ma){function oa(sa,Ja){null==ka?(sa=/^https?:\/\//.test(sa)&&!b.editor.isCorsEnabledForUrl(sa)?PROXY_URL+"?url="+encodeURIComponent(sa):TEMPLATE_PATH+"/"+sa,mxUtils.get(sa,mxUtils.bind(this,function(Ha){200<=Ha.getStatus()&&299>=Ha.getStatus()&&(ka=Ha.getText());Ja(ka)}))):Ja(ka)}function ia(sa,Ja,Ha){if(null!=sa&& | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
q,z=0;8>z;z++)u=1==(u&1)?3988292384^u>>>1:u>>>1,Editor.crcTable[q]=u;Editor.updateCRC=function(g,x,F,M){for(var Q=0;Q<M;Q++)g=Editor.crcTable[(g^x.charCodeAt(F+Q))&255]^g>>>8;return g};Editor.crc32=function(g){for(var x=-1,F=0;F<g.length;F++)x=x>>>8^Editor.crcTable[(x^g.charCodeAt(F))&255];return(x^-1)>>>0};Editor.writeGraphModelToPng=function(g,x,F,M,Q){function S(Y,ba){var fa=X;X+=ba;return Y.substring(fa,X)}function W(Y){Y=S(Y,4);return Y.charCodeAt(3)+(Y.charCodeAt(2)<<8)+(Y.charCodeAt(1)<<16)+
(Y.charCodeAt(0)<<24)}function T(Y){return String.fromCharCode(Y>>24&255,Y>>16&255,Y>>8&255,Y&255)}g=g.substring(g.indexOf(",")+1);g=window.atob?atob(g):Base64.decode(g,!0);var X=0;if(S(g,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=Q&&Q();else if(S(g,4),"IHDR"!=S(g,4))null!=Q&&Q();else{S(g,17);Q=g.substring(0,X);do{var Z=W(g);if("IDAT"==S(g,4)){Q=g.substring(0,X-8);"pHYs"==x&&"dpi"==F?(F=Math.round(M/.0254),F=T(F)+T(F)+String.fromCharCode(1)):F=F+String.fromCharCode(0)+ | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!0)},ConfirmDialog=function(b,f,l,d,q,u,z,D,L,K,E){var U=document.createElement("div");U.style.textAlign="center";E=null!=E?E:44;var J=document.createElement("div");J.style.padding="6px";J.style.overflow="auto";J.style.maxHeight=E+
"px";J.style.lineHeight="1.2em";mxUtils.write(J,f);U.appendChild(J);null!=K&&(J=document.createElement("div"),J.style.padding="6px 0 6px 0",f=document.createElement("img"),f.setAttribute("src",K),J.appendChild(f),U.appendChild(J));K=document.createElement("div");K.style.textAlign="center";K.style.whiteSpace="nowrap";var c=document.createElement("input");c.setAttribute("type","checkbox");u=mxUtils.button(u||mxResources.get("cancel"),function(){b.hideDialog();null!=d&&d(c.checked)});u.className="geBtn";
null!=D&&(u.innerHTML=D+"<br>"+u.innerHTML,u.style.paddingBottom="8px",u.style.paddingTop="8px",u.style.height="auto",u.style.width="40%");b.editor.cancelFirst&&K.appendChild(u);var e=mxUtils.button(q||mxResources.get("ok"),function(){b.hideDialog();null!=l&&l(c.checked)});K.appendChild(e);null!=z?(e.innerHTML=z+"<br>"+e.innerHTML+"<br>",e.style.paddingBottom="8px",e.style.paddingTop="8px",e.style.height="auto",e.className="geBtn",e.style.width="40%"):e.className="geBtn gePrimaryBtn";b.editor.cancelFirst||
K.appendChild(u);U.appendChild(K);L?(K.style.marginTop="10px",J=document.createElement("p"),J.style.marginTop="20px",J.style.marginBottom="0px",J.appendChild(c),q=document.createElement("span"),mxUtils.write(q," "+mxResources.get("rememberThisSetting")),J.appendChild(q),U.appendChild(J),mxEvent.addListener(q,"click",function(k){c.checked=!c.checked;mxEvent.consume(k)})):K.style.marginTop="12px";this.init=function(){e.focus()};this.container=U},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
function(){k.checked&&(null==e||e.checked)?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")}));mxUtils.br(c);return{getLink:function(){return k.checked?"blank"===t.value?"_blank":p:null},getEditInput:function(){return k},getEditSelect:function(){return t}}};EditorUi.prototype.addLinkSection=function(c,e){function k(){var C=document.createElement("div");C.style.width="100%";C.style.height="100%";C.style.boxSizing="border-box";null!=t&&t!=mxConstants.NONE?(C.style.border="1px solid black",
C.style.backgroundColor=t):(C.style.backgroundPosition="center center",C.style.backgroundRepeat="no-repeat",C.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");y.innerText="";y.appendChild(C)}mxUtils.write(c,mxResources.get("links")+":");var n=document.createElement("select");n.style.width="100px";n.style.padding="0px";n.style.marginLeft="8px";n.style.marginRight="10px";n.className="geBtn";var p=document.createElement("option");p.setAttribute("value","auto");mxUtils.write(p,mxResources.get("automatic")); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"checked"):(J=parseInt(m[5]),y.value=J,n.setAttribute("checked","checked"),t.style.visibility="visible"):k.setAttribute("checked","checked")):l=null}else l=null}catch(Q){}c.style=e+(l?l:q());c.vertex=!0;E.addCell(c,null,null,null,null);E.selectAll();E.addListener(mxEvent.CELLS_MOVED,B);E.addListener(mxEvent.CELLS_RESIZED,B);var x=E.graphHandler.mouseUp,F=E.graphHandler.mouseDown;E.graphHandler.mouseUp=function(){x.apply(this,arguments);K.style.backgroundColor="#fff9"};E.graphHandler.mouseDown=function(){F.apply(this,
arguments);K.style.backgroundColor=""};E.dblClick=function(){};var M=E.getSelectionModel().changeSelection;E.getSelectionModel().changeSelection=function(){M.call(this,[c],[c])}};L.onerror=function(){L.onload=null;L.src=Editor.errorImage};L.setAttribute("src",f);L.style.maxWidth="300px";L.style.maxHeight="300px";D.appendChild(L);z.appendChild(D);var K=document.createElement("div");K.style.width="300px";K.style.height="300px";K.style.overflow="hidden";K.style.backgroundColor="#fff9";z.appendChild(K); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
ba=Array(Y.length);for(var fa=0;fa<Y.length;fa++)ba[fa]=String.fromCharCode(Y[fa]);ba=ba.join("")}S=null!=S?S:"data:image/png;base64,";ba=S+Editor.base64Encode(ba)}x(ba)}}else null!=F&&(0==Y.getStatus()?F({message:mxResources.get("accessDenied")},Y):404==Y.getStatus()?F({message:mxResources.get("fileNotFound"),code:Y.getStatus()},Y):F({message:this.getErrorMessage(Y)},Y))}),function(Y){null!=F&&F({message:mxResources.get("error")+" "+Y.getStatus()})},X,this.timeout,function(){Q&&null!=F&&F({code:App.ERROR_TIMEOUT, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.model.getCell(g[F]);null!=Q&&x.push(Q)}return x};var N=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(g){return N.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(g))};Graph.prototype.setHiddenTags=function(g){this.hiddenTags=g;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(g){var x=mxUtils.indexOf(this.hiddenTags,g);0>x?this.hiddenTags.push(g):0<=x&&this.hiddenTags.splice(x,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
this.reload(f,l,d,null,q))}catch(C){null!=l&&l(C)}}else null!=l&&l()}),l)}else null!=l&&l()});window.setTimeout(U,this.cacheReadyDelay)}else this.reload(f,l,d,null,q)}else null!=l&&l()}};DrawioFileSync.prototype.reload=function(b,f,l,d,q){EditorUi.debug("DrawioFileSync.reload",[this],"immediate",q);this.file.updateFile(mxUtils.bind(this,function(){this.lastModified=this.file.getLastModifiedDate();this.updateStatus();this.start();null!=b&&b()}),mxUtils.bind(this,function(u){null!=f&&f(u)}),l,d,q)}; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
e&&!e.isRestricted());e=this.actions.get("findReplace");e.setEnabled("hidden"!=this.diagramContainer.style.visibility);e.label=mxResources.get("find")+(c.isEnabled()?"/"+mxResources.get("replace"):"");c=c.view.getState(c.getSelectionCell());this.actions.get("editShape").setEnabled(n&&null!=c&&null!=c.shape&&null!=c.shape.stencil)};var J=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=
null);J.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,e,k,n,p,t,y,C){var G=c.editor.graph;if("xml"==k)c.hideDialog(),c.saveData(e,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==k)c.hideDialog(),c.saveData(e,"svg",mxUtils.getXml(G.getSvg(n,p,t)),"image/svg+xml");else{var B=c.getFileData(!0,null,null,null,null,!0),V=G.getGraphBounds(),R=Math.floor(V.width*p/G.view.scale),O=Math.floor(V.height* | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
c+(null!=k?"&mime="+k:"")+(null!=p?"&format="+p:"")+(null!=t?"&base64="+t:"")+(null!=e?"&filename="+encodeURIComponent(e):"")+(n?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(c,e){e=e||"";c=atob(c);for(var k=c.length,n=Math.ceil(k/1024),p=Array(n),t=0;t<n;++t){for(var y=1024*t,C=Math.min(y+1024,k),G=Array(C-y),B=0;y<C;++B,++y)G[B]=c[y].charCodeAt(0);p[t]=new Uint8Array(G)}return new Blob(p,{type:e})};EditorUi.prototype.saveLocalFile=function(c,e,k,n,p,t,y,C){t=null!=t?t:!1;y=null!=y? | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
2});var p=null,t=null,y=null,C=null,G=null,B=null,V=null;d.actions.addAction("testPerformance",mxUtils.bind(this,function(){null!=p?(q.view.revalidate=p,p=null):(p=q.view.revalidate,q.view.revalidate=function(){var m=Date.now(),v=p.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",[this],"time",Date.now()-m+" ms","args",arguments);return v});null!=t?(d.selectPage=t,t=null):(t=d.selectPage,d.selectPage=function(){var m=Date.now(),v=t.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.selectPage", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
0;I<H.length;I++){var g=e.view.getState(e.model.getTerminal(H[I],!1));null!=g&&(!m&&Math.min(g.x+g.width,v.x+v.width)>=Math.max(g.x,v.x)||m&&Math.min(g.y+g.height,v.y+v.height)>=Math.max(g.y,v.y))&&A.push(g)}A.sort(function(x,F){return m?x.x+x.width-F.x-F.width:x.y+x.height-F.y-F.height})}return A}function J(H,m){var v=D(H),A=m==mxConstants.DIRECTION_EAST||m==mxConstants.DIRECTION_WEST;(v==mxConstants.DIRECTION_EAST||v==mxConstants.DIRECTION_WEST)==A&&v!=m?c.actions.get("selectParent").funct():v==
m?(m=e.getOutgoingTreeEdges(H),null!=m&&0<m.length&&e.setSelectionCell(e.model.getTerminal(m[0],!1))):(v=e.getIncomingTreeEdges(H),null!=v&&0<v.length&&(A=U(e.model.getTerminal(v[0],!0),A,H),H=e.view.getState(H),null!=H&&(H=mxUtils.indexOf(A,H),0<=H&&(H+=m==mxConstants.DIRECTION_NORTH||m==mxConstants.DIRECTION_WEST?-1:1,0<=H&&H<=A.length-1&&e.setSelectionCell(A[H].cell)))))}var c=this,e=c.editor.graph,k=e.getModel(),n=c.menus.createPopupMenu;c.menus.createPopupMenu=function(H,m,v){n.apply(this,arguments); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
""),B.setAttribute("selected","selected"),mxUtils.write(B,mxResources.get("pickFolder")+"..."),y.insertBefore(B,y.firstChild);V=y.value}function E(){if("reset"==y.value)b.resetRecent("Folders"),y.innerHTML="",R={},K();else if("pickFolder-"==y.value.substring(0,11)){var P=y.value.substring(11);y.value=V;L(P)}else if(null!=t&&null!=R[y.value]&&null!=b.editor.diagramFileTypes&&"drawio"==b.editor.diagramFileTypes[t.value].extension){P=b.getExtensionForService(R[y.value].mode);var N=p.value;null!=P&&0>
f.indexOf(".")&&0>N.indexOf(".")&&(p.value=N+P)}O.innerHTML="";mxUtils.write(O,mxResources.get("download"==y.value||"_blank"==y.value?"ok":"save"));""==y.value?O.setAttribute("disabled","disabled"):O.removeAttribute("disabled")}var U=document.createElement("div");U.style.display="flex";U.style.flexWrap="wrap";U.style.whiteSpace="nowrap";var J=document.createElement("div");J.style.display="grid";J.style.gap="5px 8px";J.style.gridAutoRows="auto auto 44px";J.style.gridAutoColumns="0fr minmax(0,1fr)"; | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
parentRow:Ta,isDeletable:!0,flipBkg:Ka}));btn=mxUtils.button("+",mxUtils.bind(Y,function(Sa){for(var Ia=Ta,Va=0;null!=Ia.nextSibling;)if(Ia.nextSibling.getAttribute("data-pName")==qa)Ia=Ia.nextSibling,Va++;else break;var Ua={type:ua,parentRow:Ta,index:Va,isDeletable:!0,defVal:Da,countProperty:Ea};Va=Z(qa,"",Ua,0==Va%2,Ka);M(qa,Da,Ua);Ia.parentNode.insertBefore(Va,Ia.nextSibling);mxEvent.consume(Sa)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function T(qa,
ta,ua,Da,Ea,Ta,Ka){if(0<Ea){var Sa=Array(Ea);ta=null!=ta?ta.split(","):[];for(var Ia=0;Ia<Ea;Ia++)Sa[Ia]=null!=ta[Ia]?ta[Ia]:null!=Da?Da:"";fa.push({name:qa,values:Sa,type:ua,defVal:Da,parentRow:Ta,flipBkg:Ka,size:Ea})}return document.createElement("div")}function X(qa,ta,ua){var Da=document.createElement("input");Da.type="checkbox";Da.checked="1"==ta;mxEvent.addListener(Da,"change",function(){M(qa,Da.checked?"1":"0",ua)});return Da}function Z(qa,ta,ua,Da,Ea){var Ta=ua.dispName,Ka=ua.type,Sa=document.createElement("tr"); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Q.getGlobalVariable=function(xa){return"page"==xa?ha.getName():"pagenumber"==xa?1:ea.apply(this,arguments)};document.body.appendChild(Q.container);Q.model.setRoot(ha.root)}if(null!=B.layerIds){var na=Q.model,Aa=na.getChildCells(na.getRoot()),Fa={};for(pa=0;pa<B.layerIds.length;pa++)Fa[B.layerIds[pa]]=!0;for(pa=0;pa<Aa.length;pa++)na.setVisible(Aa[pa],Fa[Aa[pa].id]||!1)}this.editor.exportToCanvas(mxUtils.bind(this,function(xa){W(xa.toDataURL("image/png"))}),B.width,null,B.background,mxUtils.bind(this, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
c,t.pasteCounter=0);var C=t.pasteCounter*t.gridSize;if(k||this.isCompatibleString(c))y=this.importXml(c,C,C),t.setSelectionCells(y);else if(e&&1==t.getSelectionCount()){p=t.getStartEditingCell(t.getSelectionCell(),n);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&"image"==t.getCurrentCellStyle(p)[mxConstants.STYLE_SHAPE])t.setCellStyles(mxConstants.STYLE_IMAGE,c,[p]);else{t.model.beginUpdate();try{t.labelChanged(p,c),Graph.isLink(c)&&t.setLinkForCell(p,c)}finally{t.model.endUpdate()}}t.setSelectionCell(p)}else y=
t.getInsertPoint(),t.isMouseInsertPoint()&&(C=0,t.lastPasteXml==c&&0<t.pasteCounter&&t.pasteCounter--),y=this.insertTextAt(c,y.x+C,y.y+C,p),t.setSelectionCells(y);t.isSelectionEmpty()||(t.scrollCellToVisible(t.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(t.view.getState(t.getSelectionCell())));return y};EditorUi.prototype.pasteCells=function(c,e,k,n){if(!mxEvent.isConsumed(c)){var p=e,t=!1;if(k&&null!=c.clipboardData&&c.clipboardData.getData){var y=c.clipboardData.getData("text/plain"), | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
"0"!=urlParams.pv;Graph.prototype.shadowId="dropShadow";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var e=Graph.prototype.init;Graph.prototype.init=function(){function g(Q){x=Q}e.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var x=null;mxEvent.addListener(this.container,"mouseenter", | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
g.ownerSVGElement.parentNode.insertBefore(this.webKitForceRepaintNode,g.ownerSVGElement))}};var O=Graph.prototype.refresh;Graph.prototype.refresh=function(){O.apply(this,arguments);this.refreshBackgroundImage()};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var P=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){P.apply(this, | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
m&&(H=this.getDeletableCells(this.addAllEdges(H)));for(var v=[],A=0;A<H.length;A++){var I=H[A];k.isEdge(I)&&u(I)&&(v.push(I),I=k.getTerminal(I,!1));if(d(I)){var g=[];e.traverse(I,!0,function(x,F){var M=null!=F&&e.isTreeEdge(F);M&&g.push(F);(null==F||M)&&g.push(x);return null==F||M});0<g.length&&(v=v.concat(g),I=e.getIncomingTreeEdges(H[A]),H=H.concat(I))}else null!=I&&v.push(H[A])}H=v;return p.apply(this,arguments)};c.hoverIcons.getStateAt=function(H,m,v){return d(H.cell)?null:this.graph.view.getState(this.graph.getCellAt(m,
v))};var t=e.duplicateCells;e.duplicateCells=function(H,m){H=null!=H?H:this.getSelectionCells();for(var v=H.slice(0),A=0;A<v.length;A++){var I=e.view.getState(v[A]);if(null!=I&&d(I.cell)){var g=e.getIncomingTreeEdges(I.cell);for(I=0;I<g.length;I++)mxUtils.remove(g[I],H)}}this.model.beginUpdate();try{var x=t.call(this,H,m);if(x.length==H.length)for(A=0;A<H.length;A++)if(d(H[A])){var F=e.getIncomingTreeEdges(x[A]);g=e.getIncomingTreeEdges(H[A]);if(0==F.length&&0<g.length){var M=this.cloneCell(g[0]); | 1 | JavaScript | CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. | https://cwe.mitre.org/data/definitions/78.html | safe |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.