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 |
---|---|---|---|---|---|---|---|
mxResources.get("loading")))for(var z=d.length,J=z,O=[],T=mxUtils.bind(this,function(V,S){O[V]=S;if(0==--J){this.spinner.stop();if(null!=G)G(O);else{var X=[];K.getModel().beginUpdate();try{for(V=0;V<O.length;V++){var Z=O[V]();null!=Z&&(X=X.concat(Z))}}finally{K.getModel().endUpdate()}}x(X)}}),W=0;W<z;W++)mxUtils.bind(this,function(V){var S=d[V];if(null!=S){var X=new FileReader;X.onload=mxUtils.bind(this,function(Z){if(null==B||B(S))try{if("image/"==S.type.substring(0,6))if("image/svg"==S.type.substring(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 |
D.appendChild(m);L.appendChild(D);E?(D.style.marginTop="10px",H=document.createElement("p"),H.style.marginTop="20px",H.style.marginBottom="0px",H.appendChild(d),k=document.createElement("span"),mxUtils.write(k," "+mxResources.get("rememberThisSetting")),H.appendChild(k),L.appendChild(H),mxEvent.addListener(k,"click",function(n){d.checked=!d.checked;mxEvent.consume(n)})):D.style.marginTop="12px";this.init=function(){g.focus()};this.container=L},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),
document.createElement("div"),!0)};mxUtils.extend(HeadlessEditorUi,EditorUi);HeadlessEditorUi.prototype.createUi=function(){};HeadlessEditorUi.prototype.addTrees=function(){};HeadlessEditorUi.prototype.onBeforeUnload=function(){};HeadlessEditorUi.prototype.updateActionStates=function(){};EditorUi.DIFF_INSERT="i";EditorUi.DIFF_REMOVE="r";EditorUi.DIFF_UPDATE="u";EditorUi.transientViewStateProperties="defaultParent currentRoot scrollLeft scrollTop scale translate lastPasteXml pasteCounter".split(" ");EditorUi.prototype.viewStateProperties={background:!0,backgroundImage:!0,shadowVisible:!0,foldingEnabled:!0,pageScale:!0,mathEnabled:!0,pageFormat:!0,extFonts:!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 |
Graph.prototype.highlightCells=function(l,z,J,O){for(var T=0;T<l.length;T++)this.highlightCell(l[T],z,J,O)};Graph.prototype.highlightCell=function(l,z,J,O,T){z=null!=z?z:mxConstants.DEFAULT_VALID_COLOR;J=null!=J?J:1E3;l=this.view.getState(l);var W=null;null!=l&&(T=null!=T?T:4,T=Math.max(T+1,mxUtils.getValue(l.style,mxConstants.STYLE_STROKEWIDTH,1)+T),W=new mxCellHighlight(this,z,T,!1),null!=O&&(W.opacity=O),W.highlight(l),window.setTimeout(function(){null!=W.shape&&(mxUtils.setPrefixedStyle(W.shape.node.style,
"transition","all 1200ms ease-in-out"),W.shape.node.style.opacity=0);window.setTimeout(function(){W.destroy()},1200)},J));return W};Graph.prototype.addSvgShadow=function(l,z,J,O){J=null!=J?J:!1;O=null!=O?O:!0;var T=l.ownerDocument,W=null!=T.createElementNS?T.createElementNS(mxConstants.NS_SVG,"filter"):T.createElement("filter");W.setAttribute("id",this.shadowId);var V=null!=T.createElementNS?T.createElementNS(mxConstants.NS_SVG,"feGaussianBlur"):T.createElement("feGaussianBlur");V.setAttribute("in", | 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 |
"keys",Ea,"values",Qa,"cells",aa.getSelectionCells()))}finally{aa.getModel().endUpdate()}}function T(pa,ra,va){var Ga=mxUtils.getOffset(l,!0),Ea=mxUtils.getOffset(pa,!0);ra.style.position="absolute";ra.style.left=Ea.x-Ga.x+"px";ra.style.top=Ea.y-Ga.y+"px";ra.style.width=pa.offsetWidth+"px";ra.style.height=pa.offsetHeight-(va?4:0)+"px";ra.style.zIndex=5}function W(pa,ra,va){var Ga=document.createElement("div");Ga.style.width="32px";Ga.style.height="4px";Ga.style.margin="2px";Ga.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 |
0,A.width,A.height),e.style+";rotatable=0;resizable=0;connectable=0;editable=0;movable=0;");H.vertex=!0;L.addCell(H);L.dblClick=function(P,M){if(null!=M&&M!=H)L.setSelectionCell(M);else{M=mxUtils.convertPoint(L.container,mxEvent.getClientX(P),mxEvent.getClientY(P));mxEvent.consume(P);P=L.view.scale;var p=L.view.translate;L.setSelectionCell(m((M.x-3*P)/P-p.x,(M.y-3*P)/P-p.y))}};k=new mxKeyHandler(L);k.bindKey(46,u);k.bindKey(8,u);L.getRubberband().isForceRubberbandEvent=function(P){return 0==P.evt.button&& | 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{I.model.endUpdate()}}}catch(K){if(t)throw K;this.handleError(K)}return G};EditorUi.prototype.updatePageLinks=function(d,g){for(var n=0;n<g.length;n++)this.updatePageLinksForCell(d,g[n].root),null!=g[n].viewState&&this.updateBackgroundPageLink(d,g[n].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(d,g){try{if(null!=g&&Graph.isPageLink(g.originalSrc)){var n=d[g.originalSrc.substring(g.originalSrc.indexOf(",")+1)];null!=n&&(g.originalSrc="data:page/id,"+ | 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 |
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,f){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,f,c,k,m){DrawioFile.call(this,b,e);this.title=f;this.mode=c?null:App.MODE_DEVICE;this.fileHandle=k;this.desc=m};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title}; | 1 | JavaScript | CWE-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.createParentLookup=function(b,e){function f(D){var A=c[D];null==A&&(A={inserted:[],moved:{}},c[D]=A);return A}var c={};if(null!=e[EditorUi.DIFF_INSERT])for(var k=0;k<e[EditorUi.DIFF_INSERT].length;k++){var m=e[EditorUi.DIFF_INSERT][k],u=null!=m.parent?m.parent:"",v=null!=m.previous?m.previous:"";f(u).inserted[v]=m}if(null!=e[EditorUi.DIFF_UPDATE])for(var E in e[EditorUi.DIFF_UPDATE])m=e[EditorUi.DIFF_UPDATE][E],null!=m.previous&&(u=m.parent,null==u&&(k=b.getCell(E),null!=k&&(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 |
K){var l,z=-1;return function(){clearTimeout(l);var J=this,O=arguments,T=function(){l=null;z=Date.now();C.apply(J,O)};Date.now()-z>K?T():l=setTimeout(T,K)}}(function(C,K){k(K)},300),mouseUp:function(C,K){k(K)}};A.addMouseListener(this.mouseListeners);this.shareCursorPositionListener=function(){b.isShareCursorPosition()||c("cursor",{hide:!0})};b.addListener("shareCursorPositionChanged",this.shareCursorPositionListener);this.selectionChangeListener=function(C,K){C=function(J){return null!=J?J.id:null}; | 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.apply(this,arguments);null==z&&null!=this.globalVars&&(z=this.globalVars[l]);return z};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var l=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(l.ownerDocument)).decode(l)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var G=Graph.prototype.getSvg;Graph.prototype.getSvg=function(l,z,J,O,T,W,V,S,X,Z,Y,aa,ca,da){var ba=null,sa=null,za=null;aa||null==this.themes|| | 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.getId()+"/comments"},mxUtils.bind(this,function(k){for(var m=[],u=0;u<k.items.length;u++){var v=f(this,k.items[u]);null!=v&&m.push(v)}b(m)}),e)};DriveFile.prototype.addComment=function(b,e,f){b={content:b.content};this.ui.drive.executeRequest({url:"/files/"+this.getId()+"/comments",method:"POST",params:b},mxUtils.bind(this,function(c){e(c.commentId)}),f)};DriveFile.prototype.canReplyToReplies=function(){return!1};DriveFile.prototype.canComment=function(){return this.desc.canComment}; | 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 |
AspectDialog.prototype.createViewer=function(b,e,f,c){mxEvent.disableContextMenu(b);b.style.userSelect="none";var k=new Graph(b);k.setTooltips(!1);k.setEnabled(!1);k.setPanning(!1);k.minFitScale=null;k.maxFitScale=null;k.centerZoom=!0;e="mxGraphModel"==e.nodeName?e:Editor.parseDiagramNode(e);if(null!=e){var m=e.getAttribute("background");if(null==m||""==m||m==mxConstants.NONE)m=null!=c?c:"#ffffff";b.style.backgroundColor=m;c=new mxCodec(e.ownerDocument);b=k.getModel();c.decode(e,b);e=b.getChildCount(b.root);
c=null==f;for(m=0;m<e;m++){var u=b.getChildAt(b.root,m);b.setVisible(u,c||f==u.id)}k.maxFitScale=1;k.fit(0);k.center()}return 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 |
!1,App.loadScripts(["js/shapes-14-6-5.min.js","js/stencils.min.js","js/extensions.min.js"],g,function(B){document.body.innerHTML="";var G=document.createElement("pre");mxUtils.write(G,B.stack);document.body.appendChild(G)}))},function(d){d=document.getElementById("geStatus");null!=d&&(d.innerHTML="Error loading page. <a>Please try refreshing.</a>",d.getElementsByTagName("a")[0].onclick=function(){mxLanguage="en";c(mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,
mxLanguage))})})};if(!App.isMainCalled)if(App.isMainCalled=!0,window.onerror=function(H,d,g,n,q){EditorUi.logError("Global: "+(null!=H?H:""),d,g,n,q,null,!0);null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug("Message:",H,"\nURL:",d,"\nLine:",g,"\nColumn:",n,"\nError:",q)):console.error("Message:",H,"\nURL:",d,"\nLine:",g,"\nColumn:",n,"\nError:",q);window.setTimeout(function(){alert("Error: "+(null!=H?H:""))},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 |
DrawioFile.prototype.sendErrorReport=function(b,e,f,c){try{var k=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),m=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),u=this.getCurrentUser(),v=null!=u?this.ui.hashValue(u.id):"unknown",E=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",D=this.getTitle(),A=D.lastIndexOf(".");u="xml";0<A&&(u=D.substring(A));var L=null!=f?f.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
":\n\nAppVersion="+navigator.appVersion+"\nFile="+this.ui.hashValue(this.getId())+" ("+this.getMode()+")"+(this.isModified()?" modified":"")+"\nSize/Type="+this.getSize()+" ("+u+")\nUser="+v+E+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+DrawioFile.SYNC+(null!=this.sync?(this.sync.enabled?" enabled":"")+(this.sync.isConnected()?" connected":""):"")+"\nPlugins="+(null!=mxSettings.settings?mxSettings.getPlugins():"null")+"\n\nStats:\n"+JSON.stringify(this.stats,null,2)+(null!=e?"\n\n"+e:
"")+(null!=f?"\n\nError: "+f.message:"")+"\n\nStack:\n"+L+"\n\nShadow:\n"+k+"\n\nData:\n"+m,c)}catch(H){}}; | 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||!d&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(d,g,n){var q=null==d||null==g;n=null!=n?n:24;var t=new Spinner({lines:12,length:n,width:Math.round(n/3),radius:Math.round(n/2),rotate:0,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),x=t.spin;t.spin=function(G,I){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 |
n)});G()};GitHubClient.prototype.logout=function(){this.clearPersistentToken();this.setUser(null);b=null}})();TrelloFile=function(b,e,f){DrawioFile.call(this,b,e);this.meta=f;this.saveNeededCounter=0};mxUtils.extend(TrelloFile,DrawioFile);TrelloFile.prototype.getHash=function(){return"T"+encodeURIComponent(this.meta.compoundId)};TrelloFile.prototype.getMode=function(){return App.MODE_TRELLO};TrelloFile.prototype.isAutosave=function(){return!0};TrelloFile.prototype.getTitle=function(){return this.meta.name};TrelloFile.prototype.isRenamable=function(){return!1};TrelloFile.prototype.getSize=function(){return this.meta.bytes}; | 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 |
f.appendChild(k);e.appendChild(f);this.container=e},ConnectionPointsDialog=function(b,e){function f(){null!=k&&k.destroy()}var c=document.createElement("div");c.style.userSelect="none";var k=null;this.init=function(){function m(P,M,p){P=new mxCell("",new mxGeometry(P,M,6,6),"shape=mxgraph.basic.x;fillColor=#29b6f2;strokeColor=#29b6f2;points=[];rotatable=0;resizable=0;connectable=0;editable=0;");P.vertex=!0;P.cp=!0;P.constObj=p;return L.addCell(P)}function u(P){P=L.getSelectionCells();L.deleteCells(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 |
"https://app.diagrams.net/";var B=d.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(C){C=null!=C?C:"";"1"==urlParams.dev&&(C+=(0<C.length?"&":"?")+"dev=1");return B.apply(this,arguments)};var G=g.addClickHandler;g.addClickHandler=function(C,K,l){var z=K;K=function(J,O){if(null==O){var T=mxEvent.getSource(J);"a"==T.nodeName.toLowerCase()&&(O=T.getAttribute("href"))}null!=O&&g.isCustomLink(O)&&(mxEvent.isTouchEvent(J)||!mxEvent.isPopupTrigger(J))&&g.customLinkClicked(O)&&mxEvent.consume(J);
null!=z&&z(J,O)};G.call(this,C,K,l)};m.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(g.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var I=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(C,K,l){g.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(C,["zoomIn","zoomOut","-"],null,l);I.apply(this,arguments);g.isSelectionEmpty()||null==d.addSelectionToScratchpad||this.addMenuItems(C,["-","addToScratchpad"],null,l);g.isSelectionEmpty()&& | 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 |
App.prototype.showSplash=function(b){if("1"!=urlParams.noFileMenu){var e=this.getServiceCount(!0),f=mxUtils.bind(this,function(){var k=new SplashDialog(this);this.showDialog(k.container,340,mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?200:230,!0,!0,mxUtils.bind(this,function(m){m&&!mxClient.IS_CHROMEAPP&&(m=Editor.useLocalStorage,this.createFile(this.defaultFilename+(EditorUi.isElectronApp?".drawio":""),null,null,null,null,null,null,"1"!=urlParams.local),Editor.useLocalStorage=m)}),!0)});if(this.editor.isChromelessView())this.handleError({message:mxResources.get("noFileSelected")},
mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){this.showSplash()}));else if(mxClient.IS_CHROMEAPP||null!=this.mode&&!b)null==urlParams.create&&f();else{b=4==e?2:3;var c=new StorageDialog(this,mxUtils.bind(this,function(){this.hideDialog();f()}),b);this.showDialog(c.container,3>b?200:300,3<e?320:210,!0,!1)}}}; | 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 |
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,f){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,f,c,k,m){DrawioFile.call(this,b,e);this.title=f;this.mode=c?null:App.MODE_DEVICE;this.fileHandle=k;this.desc=m};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title}; | 1 | JavaScript | CWE-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(T.value),parentChildSpacing:parseInt(S.value),siblingSpacing:parseInt(X.value)}}];c.hideDialog();c.showCustomLayoutDialog(JSON.stringify(Z,null,2))});O.className="geBtn";J=new CustomDialog(c,J,function(){null==C&&(C=2);c.loadOrgChartLayouts(z)},null,null,null,O);c.showDialog(J.container,355,140,!0,!0)},y,null,m());p.addSeparator(y);p.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){c.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 |
!0;Editor.enableRealtime=!0;Editor.enableRealtimeCache=!0;Editor.p2pSyncNotify=!1;Editor.compressXml=!0;Editor.defaultCompressed=!1;Editor.oneDriveInlinePicker=null!=window.urlParams&&"0"==window.urlParams.inlinePicker?!1:!0;Editor.globalVars=null;Editor.config=null;Editor.configVersion=null;Editor.defaultBorder=5;Editor.commonProperties=[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(l){l.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string", | 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://github.com/apps/diagrams-net-app-test":"https://github.com/apps/draw-io-app")}),mxResources.get("cancel"),f,480,null,!1)};GitHubClient.prototype.executeRequest=function(e,f,c,k,m){var u=mxUtils.bind(this,function(E){var D=!0,A=window.setTimeout(mxUtils.bind(this,function(){D=!1;c({code:App.ERROR_TIMEOUT,retry:v})}),this.ui.timeout),L=this.authToken+" "+b;e.setRequestHeaders=function(H,d){H.setRequestHeader("Authorization",L)};e.send(mxUtils.bind(this,function(){window.clearTimeout(A);var H= | 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 |
GitHubFile.prototype.setDescriptorEtag=function(b,e){b.sha=e};GitHubFile.prototype.save=function(b,e,f,c,k,m){this.doSave(this.getTitle(),e,f,c,k,m)};GitHubFile.prototype.saveAs=function(b,e,f){this.doSave(b,e,f)};GitHubFile.prototype.doSave=function(b,e,f,c,k,m){var u=this.meta.name;this.meta.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.meta.name=u;this.saveFile(b,!1,e,f,c,k,m)}),f,c,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 |
retry:Z})},S)});Z()}catch(Y){null!=J&&J(Y)}};Editor.prototype.getErrorMessage=function(l){var z=mxResources.get("error")+" "+l.getStatus();try{var J=l.getText(),O=JSON.parse(J);null!=O&&null!=O.error&&null!=O.error.message&&(z=O.error.message+" ("+z+")")}catch(T){}return z};Editor.prototype.absoluteCssFonts=function(l){var z=null;if(null!=l){var J=l.split("url(");if(0<J.length){z=[J[0]];l=window.location.pathname;var O=null!=l?l.lastIndexOf("/"):-1;0<=O&&(l=l.substring(0,O+1));O=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 |
q||"objects";var x=t.transaction([q],"readonly").objectStore(q).get(d);x.onsuccess=function(){g(x.result)};x.onerror=n}catch(B){null!=n&&n(B)}}),n)};EditorUi.prototype.getDatabaseItems=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(q){try{n=n||"objects";var t=q.transaction([n],"readonly").objectStore(n).openCursor(IDBKeyRange.lowerBound(0)),x=[];t.onsuccess=function(B){null==B.target.result?d(x):(x.push(B.target.result.value),B.target.result.continue())};t.onerror=g}catch(B){null!=g&&
g(B)}}),g)};EditorUi.prototype.getDatabaseItemKeys=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(q){try{n=n||"objects";var t=q.transaction([n],"readonly").objectStore(n).getAllKeys();t.onsuccess=function(){d(t.result)};t.onerror=g}catch(x){null!=g&&g(x)}}),g)};EditorUi.prototype.commentsSupported=function(){var d=this.getCurrentFile();return null!=d?d.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var d=this.getCurrentFile();return null!=d?d.commentsRefreshNeeded(): | 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();c(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),c(B,null,null,H,d,g)):(B=b.convertDataUri(B),G=null==G?120:G,I=null==I?100:I,b.hideDialog(),c(B,G,I,H,d,g))},q=function(B,G){if(null!=B){var I=k?null:D.getModel().getGeometry(D.getSelectionCell());null!=I?n(B,I.width,I.height,G):n(B,null,null,G)}else b.hideDialog(),c(null)};this.init=function(){L.focus();if(Graph.fileSupport){L.setAttribute("placeholder", | 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,W);X.appendChild(Z);mxEvent.addListener(Z,"click",function(Y){V(Y,N);Y.preventDefault();mxEvent.consume(Y)});T.appendChild(X);S&&(X.style.display="none")}function C(){function W(X){V.push(S);if(null!=X.replies)for(var Z=0;Z<X.replies.length;Z++)S=S.nextSibling,W(X.replies[Z])}var V=[],S=l;W(N);return{pdiv:S,replies:V}}function K(W,V,S,X,Z){function Y(){D(ba);N.addReply(da,function(sa){da.id=sa;N.replies.push(da);L(ba);S&&S()},function(sa){aa();A(ba);b.handleError(sa,
null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},X,Z)}function aa(){v(da,ba,function(sa){Y()},!0)}var ca=C().pdiv,da=b.newComment(W,b.getCurrentUser());da.pCommentId=N.id;null==N.replies&&(N.replies=[]);var ba=H(da,N.replies,ca,M+1);V?aa():Y()}if(p||!N.isResolved){B.style.display="none";var l=document.createElement("div");l.className="geCommentContainer";l.setAttribute("data-commentId",N.id);l.style.marginLeft=20*M+5+"px";N.isResolved&&!Editor.isDarkMode()&&(l.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 |
this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var Q=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(M){Q.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=M?"":"none")};var P=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(M,p){P.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){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 |
[C],[K])):this.joinFile(!0)}catch(l){p=l,e.file.fireEvent(new mxEventObject("realtimeStateChanged")),EditorUi.debug("P2PCollab:","sendReply error",arguments,l)}});this.sendMessage=c;this.sendDiff=function(C){this.sendMessage("diff",{diff:C})};this.sendNotification=function(C){this.sendMessage("notify",{msg:C})};this.getState=function(){return null!=H?H.readyState:3};this.getLastError=function(){return p};this.mouseListeners={startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(C,K){},mouseMove: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 |
m?"&page="+m:""))+window.location.hash})})(f.items[c]);b(f.items)}),e)};DriveFile.prototype.getLatestVersion=function(b,e){this.ui.drive.getFile(this.getId(),b,e,!0)};DriveFile.prototype.getChannelId=function(){var b=this.ui.drive.getCustomProperty(this.desc,"channel");null!=b&&(b="G-"+this.getId()+"."+b);return b};DriveFile.prototype.getChannelKey=function(){return this.ui.drive.getCustomProperty(this.desc,"key")};DriveFile.prototype.getLastModifiedDate=function(){return new Date(this.desc.modifiedDate)}; | 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,x.pasteCounter=0);var G=x.pasteCounter*x.gridSize;if(n||this.isCompatibleString(d))B=this.importXml(d,G,G),x.setSelectionCells(B);else if(g&&1==x.getSelectionCount()){t=x.getStartEditingCell(x.getSelectionCell(),q);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(d)&&"image"==x.getCurrentCellStyle(t)[mxConstants.STYLE_SHAPE])x.setCellStyles(mxConstants.STYLE_IMAGE,d,[t]);else{x.model.beginUpdate();try{x.labelChanged(t,d),Graph.isLink(d)&&x.setLinkForCell(t,d)}finally{x.model.endUpdate()}}x.setSelectionCell(t)}else B=
x.getInsertPoint(),x.isMouseInsertPoint()&&(G=0,x.lastPasteXml==d&&0<x.pasteCounter&&x.pasteCounter--),B=this.insertTextAt(d,B.x+G,B.y+G,t),x.setSelectionCells(B);x.isSelectionEmpty()||(x.scrollCellToVisible(x.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(x.view.getState(x.getSelectionCell())));return B};EditorUi.prototype.pasteCells=function(d,g,n,q){if(!mxEvent.isConsumed(d)){var t=g,x=!1;if(n&&null!=d.clipboardData&&d.clipboardData.getData){var B=d.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 |
B)}})));d(x);x.onversionchange=function(){x.close()}}catch(B){null!=g?g(B):null!=window.console&&console.warn(B)}});q.onerror=g;q.onblocked=function(){}}catch(t){null!=g?g(t):null!=window.console&&console.error(t)}else null!=g&&g(Error("IndexedDB not supported"))}else d(this.database)};EditorUi.prototype.setDatabaseItem=function(d,g,n,q,t){this.openDatabase(mxUtils.bind(this,function(x){try{t=t||"objects";Array.isArray(t)||(t=[t],d=[d],g=[g]);var B=x.transaction(t,"readwrite");B.oncomplete=n;B.onerror=
q;for(x=0;x<t.length;x++)B.objectStore(t[x]).put(null!=d&&null!=d[x]?{key:d[x],data:g[x]}:g[x])}catch(G){null!=q&&q(G)}}),q)};EditorUi.prototype.removeDatabaseItem=function(d,g,n,q){this.openDatabase(mxUtils.bind(this,function(t){q=q||"objects";Array.isArray(q)||(q=[q],d=[d]);t=t.transaction(q,"readwrite");t.oncomplete=g;t.onerror=n;for(var x=0;x<q.length;x++)t.objectStore(q[x]).delete(d[x])}),n)};EditorUi.prototype.getDatabaseItem=function(d,g,n,q){this.openDatabase(mxUtils.bind(this,function(t){try{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;this.okButton=k;this.container=H},TemplatesDialog=function(b,e,f,c,k,m,u,v,E,D,A,L,H,d,g){function n(ja){ta.innerText=ja;ta.style.display="block";setTimeout(function(){ta.style.display="none"},4E3)}function q(){null!=z&&(z.style.fontWeight="normal",z.style.textDecoration="none",J=z,z=null)}function t(ja,fa,ma,na,oa,ia,ka){if(-1<ja.className.indexOf("geTempDlgRadioBtnActive"))return!1;ja.className+=" geTempDlgRadioBtnActive";C.querySelector(".geTempDlgRadioBtn[data-id="+na+"]").className="geTempDlgRadioBtn "+ | 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 |
"Invalid data",toString:function(){return this.message}};};var e=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(l,z){l=null!=l?l:!0;var J=e.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&J.setAttribute("style",this.graph.currentStyle);var O=this.graph.getBackgroundImageObject(this.graph.backgroundImage,z);null!=O&&J.setAttribute("backgroundImage",JSON.stringify(O));J.setAttribute("math",this.graph.mathEnabled?"1":"0");J.setAttribute("shadow", | 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;t.style.border="3px dotted rgb(254, 137, 12)";t.style.pointerEvents="none";t.style.position="absolute";t.style.top=g+"px";t.style.left=n+"px";t.style.width=Math.max(0,x-3)+"px";t.style.height=Math.max(0,q-3)+"px";null!=d&&d.parentNode==this.editor.graph.container?this.editor.graph.container.appendChild(t):document.body.appendChild(t);return t};EditorUi.prototype.stringToCells=function(d){d=mxUtils.parseXml(d);var g=this.editor.extractGraphModel(d.documentElement);d=[];if(null!=g){var n=new mxCodec(g.ownerDocument),
q=new mxGraphModel;n.decode(g,q);g=q.getChildAt(q.getRoot(),0);for(n=0;n<q.getChildCount(g);n++)d.push(q.getChildAt(g,n))}return d};EditorUi.prototype.openFileHandle=function(d,g,n,q,t){if(null!=g&&0<g.length){if(!this.useCanvasForExport&&/(\.png)$/i.test(g)||/(\.pdf)$/i.test(g))g=g.substring(0,g.length-4),/(\.drawio)$/i.test(g)||(g+=".drawio");var x=mxUtils.bind(this,function(G){g=0<=g.lastIndexOf(".")?g.substring(0,g.lastIndexOf("."))+".drawio":g+".drawio";if("<mxlibrary"==G.substring(0,10)){null== | 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.prototype.lineTo=function(W,V){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,W,V),this.lastX=W,this.lastY=V)};l.prototype.moveTo=function(W,V){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,W,V),this.lastX=W,this.lastY=V,this.firstX=W,this.firstY=V)};l.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};l.prototype.quadTo=function(W,V,S,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 |
ca:null)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}function F(fa,ma,na,oa,ia,ka,xa){null!=ba&&(ba.style.backgroundColor="transparent",ba.style.border="1px solid transparent");K.removeAttribute("disabled");da=ma;aa=na;ca=ka;ba=fa;sa=oa;za=xa;Ba=ia;ba.style.backgroundColor=v;ba.style.border=E}function U(fa,ma,na,oa,ia,ka,xa,ua,Ka,Ja,Aa){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 Da(Na,Ya){if(null==fa||z||b.sidebar.currentElt==wa)b.sidebar.hideTooltip();else if(b.sidebar.hideTooltip(),null!=J){var Wa="<mxfile><diagram>"+Graph.compress('<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" value="" style="shape=image;image='+J.src+';imageAspect=1;" parent="1" vertex="1"><mxGeometry width="'+J.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 |
var X=this.fill,Z=this.stroke;this.stroke=this.fill=null;var Y=this.configurePointerEvents,aa=W.setStrokeColor;W.setStrokeColor=function(){};var ca=W.setFillColor;W.setFillColor=function(){};S||null==X||(this.configurePointerEvents=function(){});W.handJiggle.passThrough=!0;O.apply(this,arguments);W.handJiggle.passThrough=!1;W.setFillColor=ca;W.setStrokeColor=aa;this.configurePointerEvents=Y;this.stroke=Z;this.fill=X;W.restore();S&&null!=X&&(W.addTolerance=function(){})}O.apply(this,arguments);W.addTolerance= | 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(d,g,n){var q=new XMLHttpRequest;q.open("POST",OPEN_URL);q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");q.onreadystatechange=function(){g(q)};q.send("format=xml&filename="+encodeURIComponent(n)+"&data="+encodeURIComponent(d));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(t){}};EditorUi.prototype.isResampleImageSize=function(d,g){g=null!=g?g:this.resampleThreshold;return d>g};EditorUi.prototype.resizeImage=function(d,g,n,q,t,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 |
mxAsyncCanvas.prototype.setFontFamily=function(b){this.state.fontFamily=b};mxAsyncCanvas.prototype.setFontStyle=function(b){this.state.fontStyle=b};mxAsyncCanvas.prototype.rect=function(b,e,f,c){};mxAsyncCanvas.prototype.roundrect=function(b,e,f,c,k,m){};mxAsyncCanvas.prototype.ellipse=function(b,e,f,c){};mxAsyncCanvas.prototype.rewriteImageSource=function(b){if("http://"==b.substring(0,7)||"https://"==b.substring(0,8))b="/proxy?url="+encodeURIComponent(b);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 |
(ka?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");C.querySelector("."+fa).src="/images/"+ma+"-sel.svg";C.querySelector("."+oa).src="/images/"+ia+".svg";return!0}function x(ja,fa,ma,na){function oa(ua,Ka){null==ka?(ua=/^https?:\/\//.test(ua)&&!b.editor.isCorsEnabledForUrl(ua)?PROXY_URL+"?url="+encodeURIComponent(ua):TEMPLATE_PATH+"/"+ua,mxUtils.get(ua,mxUtils.bind(this,function(Ja){200<=Ja.getStatus()&&299>=Ja.getStatus()&&(ka=Ja.getText());Ka(ka)}))):Ka(ka)}function ia(ua,Ka,Ja){if(null!=ua&& | 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 U};EditorUi.prototype.getXmlFileData=function(d,g,n,q){d=null!=d?d:!0;g=null!=g?g:!1;n=null!=n?n:!Editor.defaultCompressed;var t=this.editor.getGraphXml(d,q);if(d&&null!=this.fileNode&&null!=this.currentPage)if(d=function(I){var F=I.getElementsByTagName("mxGraphModel");F=0<F.length?F[0]:null;null==F&&n?(F=mxUtils.trim(mxUtils.getTextContent(I)),I=I.cloneNode(!1),0<F.length&&(F=Graph.decompress(F),null!=F&&0<F.length&&I.appendChild(mxUtils.parseXml(F).documentElement))):null==F||n?I=I.cloneNode(!0):
(I=I.cloneNode(!1),mxUtils.setTextContent(I,Graph.compressNode(F)));t.appendChild(I)},EditorUi.removeChildNodes(this.currentPage.node),mxUtils.setTextContent(this.currentPage.node,Graph.compressNode(t)),t=this.fileNode.cloneNode(!1),g)d(this.currentPage.node);else for(g=0;g<this.pages.length;g++){var x=this.pages[g],B=x.node;if(x!=this.currentPage)if(x.needsUpdate){var G=new mxCodec(mxUtils.createXmlDocument());G=G.encode(new mxGraphModel(x.root));this.editor.graph.saveViewState(x.viewState,G,null, | 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&&g(N)}}),null,null,null,mxUtils.bind(this,function(U){null!=g&&g(U)}),null,null,q,null,x.shadowVisible,null,x,t,null,null,null,"diagram",null)}catch(U){null!=g&&g(U)}};EditorUi.prototype.getEmbeddedSvg=function(d,g,n,q,t,x,B,G,I,F,U,R,N){G=null!=G?G:!0;U=null!=U?U:0;B=null!=I?I:g.background;B==mxConstants.NONE&&(B=null);x=g.getSvg(B,F,U,null,null,x,null,null,null,g.shadowVisible||R,null,N,"diagram");(g.shadowVisible||R)&&g.addSvgShadow(x,null,null,0==U);null!=d&&x.setAttribute("content",d);null!=
n&&x.setAttribute("resource",n);var Q=mxUtils.bind(this,function(P){P=(q?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(P);null!=t&&t(P);return P});g.mathEnabled&&this.editor.addMathCss(x);if(null!=t)this.embedFonts(x,mxUtils.bind(this,function(P){G?this.editor.convertImages(P,mxUtils.bind(this,function(M){Q(M)})):Q(P)}));else return Q(x)};EditorUi.prototype.embedFonts=function(d,g){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&& | 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 |
S.fillStyle=V;return S};l.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};l.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};l.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var W=2;W<arguments.length;W+=2)this.lastX=arguments[W-1],this.lastY=arguments[W],this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))}; | 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=Array(Y.length);for(var ca=0;ca<Y.length;ca++)aa[ca]=String.fromCharCode(Y[ca]);aa=aa.join("")}W=null!=W?W:"data:image/png;base64,";aa=W+Editor.base64Encode(aa)}z(aa)}}else null!=J&&(0==Y.getStatus()?J({message:mxResources.get("accessDenied")},Y):404==Y.getStatus()?J({message:mxResources.get("fileNotFound"),code:Y.getStatus()},Y):J({message:this.getErrorMessage(Y)},Y))}),function(Y){null!=J&&J({message:mxResources.get("error")+" "+Y.getStatus()})},X,this.timeout,function(){T&&null!=J&&J({code:App.ERROR_TIMEOUT,
retry:Z})},S)});Z()}catch(Y){null!=J&&J(Y)}};Editor.prototype.getErrorMessage=function(l){var z=mxResources.get("error")+" "+l.getStatus();try{var J=l.getText(),O=JSON.parse(J);null!=O&&null!=O.error&&null!=O.error.message&&(z=O.error.message+" ("+z+")")}catch(T){}return z};Editor.prototype.absoluteCssFonts=function(l){var z=null;if(null!=l){var J=l.split("url(");if(0<J.length){z=[J[0]];l=window.location.pathname;var O=null!=l?l.lastIndexOf("/"):-1;0<=O&&(l=l.substring(0,O+1));O=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 |
e.appendChild(L);e.appendChild(f);A.appendChild(e);var H=v,d,g,n=function(B,G,I,F){var U="data:"==B.substring(0,5);!b.isOffline()||U&&"undefined"===typeof chrome?0<B.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(B,function(R){b.spinner.stop();b.hideDialog();var N=!1===F?1:null!=G&&null!=I?Math.max(G/R.width,I/R.height):Math.min(1,Math.min(520/R.width,520/R.height));m&&(B=b.convertDataUri(B));c(B,Math.round(Number(R.width)*N),Math.round(Number(R.height)*N),H,d,g)},
function(){b.spinner.stop();c(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),c(B,null,null,H,d,g)):(B=b.convertDataUri(B),G=null==G?120:G,I=null==I?100:I,b.hideDialog(),c(B,G,I,H,d,g))},q=function(B,G){if(null!=B){var I=k?null:D.getModel().getGeometry(D.getSelectionCell());null!=I?n(B,I.width,I.height,G):n(B,null,null,G)}else b.hideDialog(),c(null)};this.init=function(){L.focus();if(Graph.fileSupport){L.setAttribute("placeholder", | 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 |
Math.round(Math.pow(2,v)*(1+.1*(Math.random()-.5))*this.coolOff))):null!=k&&k(g):k(g)}}}catch(t){if(null!=k)k(t);else throw t;}}))}catch(d){if(null!=k)k(d);else throw d;}});null!=b&&this.authCalled?E():this.execute(E)}catch(D){if(null!=k)k(D);else throw D;}};DriveClient.prototype.createAuthWin=function(f){return window.open(f?f:"about:blank","gdauth",["width=525,height=525","top="+(window.screenY+Math.max(window.outerHeight-525,0)/2),"left="+(window.screenX+Math.max(window.outerWidth-525,0)/2),"status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes"].join())}; | 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 b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="21.4.0";EditorUi.compactUi="atlas"!=Editor.currentTheme;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL; | 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 |
App.prototype.fileCreated=function(b,e,f,c,k,m){var u=window.location.pathname;null!=e&&0<e.length&&(u+="?libs="+e);null!=k&&0<k.length&&(u+="?clibs="+k);u=this.getUrl(u);b.getMode()!=App.MODE_DEVICE&&(u+="#"+b.getHash());if(this.spinner.spin(document.body,mxResources.get("inserting"))){var v=b.getData();v=0<v.length?this.editor.extractGraphModel(mxUtils.parseXml(v).documentElement,!0):null;var E=window.location.protocol+"//"+window.location.hostname+u,D=v,A=null;null!=v&&/\.svg$/i.test(b.getTitle())&&(A=
this.createTemporaryGraph(this.editor.graph.getStylesheet()),document.body.appendChild(A.container),D=this.decodeNodeIntoGraph(D,A));b.setData(this.createFileData(v,A,b,E));null!=A&&A.container.parentNode.removeChild(A.container);var L=mxUtils.bind(this,function(){this.spinner.stop()}),H=mxUtils.bind(this,function(){L();var d=this.getCurrentFile();null==f&&null!=d&&(f=!d.isModified()&&null==d.getMode());var g=mxUtils.bind(this,function(){window.openFile=null;this.fileLoaded(b,null,m);f&&b.addAllSavedStatus();
null!=e&&this.sidebar.showEntries(e);if(null!=k){for(var q=[],t=k.split(";"),x=0;x<t.length;x++)q.push(decodeURIComponent(t[x]));this.loadLibraries(q)}null!=c&&c()}),n=mxUtils.bind(this,function(){f||null==d||!d.isModified()?g():this.confirm(mxResources.get("allChangesLost"),null,g,mxResources.get("cancel"),mxResources.get("discardChanges"))});null==f||f?n():(b.constructor==LocalFile&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(b.getData(),b.getTitle(),
null==b.getMode())),window.openWindow(u,null,n))});b.constructor==LocalFile?H():b.saveFile(b.getTitle(),!1,mxUtils.bind(this,function(){H()}),mxUtils.bind(this,function(d){L();null!=d&&"AbortError"==d.name||this.handleError(d)}))}}; | 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 |
DropboxFile.prototype.getRevisions=function(b,e){var f=this.ui.dropbox.client.filesListRevisions({path:this.stat.path_lower,limit:100});f.then(mxUtils.bind(this,function(c){try{for(var k=[],m=c.entries.length-1;0<=m;m--)mxUtils.bind(this,function(u){k.push({modifiedDate:u.client_modified,fileSize:u.size,getXml:mxUtils.bind(this,function(v,E){this.ui.dropbox.readFile({path:this.stat.path_lower,rev:u.rev},v,E)}),getUrl:mxUtils.bind(this,function(v){return this.ui.getUrl(window.location.pathname+"?rev="+ | 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(l){var z="1"==mxUtils.getValue(l.style,"enumerate",0);z&&null==l.secondLabel?(l.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),l.secondLabel.size=12,l.secondLabel.state=l,l.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(l,l.secondLabel)):z||null==l.secondLabel||(l.secondLabel.destroy(),l.secondLabel=null);z=l.secondLabel;if(null!=z){var J=l.view.scale,O=this.createEnumerationValue(l);l=this.graph.model.isVertex(l.cell)?
new mxRectangle(l.x+l.width-4*J,l.y+4*J,0,0):mxRectangle.fromPoint(l.view.getPoint(l));z.bounds.equals(l)&&z.value==O&&z.scale==J||(z.bounds=l,z.value=O,z.scale=J,z.redraw())}};var R=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){R.apply(this,arguments);if(mxClient.IS_GC&&null!=this.getDrawPane()){var l=this.getDrawPane().parentNode;!this.graph.mathEnabled||mxClient.NO_FO||null!=this.webKitForceRepaintNode&&null!=this.webKitForceRepaintNode.parentNode|| | 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()},mxEvent.addListener(A,"scroll",t))}),n)}}))});b?this.user?G():this.updateUser(function(){G()},n,!0):this.authenticate(mxUtils.bind(this,function(){this.updateUser(function(){G()},n,!0)}),n)};GitLabClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();this.setUser(null);b=null;this.setToken(null)}})();DrawioComment=function(b,e,f,c,k,m,u){this.file=b;this.id=e;this.content=f;this.modifiedDate=c;this.createdDate=k;this.isResolved=m;this.user=u;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,f,c,k){e()};DrawioComment.prototype.editComment=function(b,e,f){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DriveComment=function(b,e,f,c,k,m,u,v){DrawioComment.call(this,b,e,f,c,k,m,u);this.pCommentId=v};mxUtils.extend(DriveComment,DrawioComment);DriveComment.prototype.addReply=function(b,e,f,c,k){b={content:b.content};c?b.verb="resolve":k&&(b.verb="reopen");this.file.ui.drive.executeRequest({url:"/files/"+this.file.getId()+"/comments/"+this.id+"/replies",params:b,method:"POST"},mxUtils.bind(this,function(m){e(m.replyId)}),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 |
g.parentNode&&g.parentNode.removeChild(g)}))};var A=!1;EditorUi.prototype.initFormatWindow=function(){if(!A&&null!=this.formatWindow){A=!0;var H=this.formatWindow.window.toggleMinimized,d=240;this.formatWindow.window.toggleMinimized=function(){H.apply(this,arguments);this.minimized?(d=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+d-140+"px"):(this.div.style.width=d+"px",this.table.style.width=this.div.style.width,
this.div.style.left=Math.max(0,parseInt(this.div.style.left)-d+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(g){mxEvent.getSource(g)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var L=EditorUi.prototype.init;EditorUi.prototype.init=function(){function H(S,X,Z){var Y=x.menus.get(S),aa=F.addMenu(mxResources.get(S),mxUtils.bind(this,function(){Y.funct.apply(this,arguments)}),I);aa.className="geMenuItem"; | 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(d){var g=e.apply(this,arguments);if(null==g)try{var n=d.indexOf("<mxfile ");if(0<=n){var q=d.lastIndexOf("</mxfile>");q>n&&(g=d.substring(n,q+15).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}else{var t=mxUtils.parseXml(d),x=this.editor.extractGraphModel(t.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);g=null!=x?mxUtils.getXml(x):""}}catch(B){}return g};EditorUi.prototype.validateFileData=function(d){if(null!=
d&&0<d.length){var g=d.indexOf('<meta charset="utf-8">');0<=g&&(d=d.slice(0,g)+'<meta charset="utf-8"/>'+d.slice(g+23-1,d.length));d=Graph.zapGremlins(d)}return d};EditorUi.prototype.replaceFileData=function(d){d=this.validateFileData(d);d=null!=d&&0<d.length?mxUtils.parseXml(d).documentElement:null;var g=null!=d?this.editor.extractGraphModel(d,!0):null;null!=g&&(d=g);if(null!=d){g=this.editor.graph;g.model.beginUpdate();try{var n=null!=this.pages?this.pages.slice():null,q=d.getElementsByTagName("diagram"); | 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.diagramContainer.scrollLeft+=d.x-g.x;this.diagramContainer.scrollTop+=d.x-g.x};EditorUi.prototype.isAutoDarkModeSupported=function(){return null!=window.matchMedia};EditorUi.prototype.isAutoDarkMode=function(d){return!d&&"auto"==urlParams.dark||Editor.isSettingsEnabled()&&("auto"==mxSettings.settings.darkMode||"draw.io"==this.getServiceName()&&"1"!=urlParams.embed&&(!this.editor.chromeless||this.editor.editable)&&null==mxSettings.settings.darkMode)};EditorUi.prototype.setDarkMode=function(d){this.doSetDarkMode(d,
mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("darkModeChanged"))}),mxUtils.bind(this,function(g){null!=window.console&&console.error(g);this.editor.setStatus(g.message)}))};EditorUi.prototype.createDarkStyle=function(){var d=document.createElement("link");d.setAttribute("rel","stylesheet");d.setAttribute("href",STYLE_PATH+"/dark.css");d.setAttribute("charset","UTF-8");d.setAttribute("type","text/css");return d};EditorUi.setGraphDarkMode=function(d,g,n){d.view.defaultGridColor=n?mxGraphView.prototype.defaultDarkGridColor: | 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 |
na.join(" ")}null!=ja?(O=ja,O.className+=" "+fa,T=ma,la.className="geTempDlgCreateBtn"):(T=O=null,la.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function G(ja,fa){if(null!=T){var ma=function(xa){ka.isExternal?E(ka,function(ua){na(ua,xa)},oa):ka.url?mxUtils.get(TEMPLATE_PATH+"/"+ka.url,mxUtils.bind(this,function(ua){200<=ua.getStatus()&&299>=ua.getStatus()?na(ua.getText(),xa):oa()})):na(b.emptyDiagramXml,xa)},na=function(xa,ua){g||b.hideDialog(!0);e(xa,ua,ka,fa)},oa=function(){n(mxResources.get("cannotLoad")); | 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 |
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,f){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,f,c,k,m){DrawioFile.call(this,b,e);this.title=f;this.mode=c?null:App.MODE_DEVICE;this.fileHandle=k;this.desc=m};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title}; | 1 | JavaScript | CWE-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 |
Xa?this.src=Xa:(this.src=Editor.errorImage,this.onerror=null)};mxEvent.addGestureListeners(wa,mxUtils.bind(this,function(Na){F(wa,null,null,fa,xa,Aa)}),null,null);mxEvent.addListener(wa,"dblclick",function(Na){I();mxEvent.consume(Na)})}else if(!Ja&&null!=fa&&0<fa.length){var Sa=function(Na){K.setAttribute("disabled","disabled");wa.style.backgroundColor="transparent";wa.style.border="1px solid transparent";C.spin(ha);La(fa,function(Ya,Wa){C.stop();null!=Ya&&(F(wa,Ya,ma,null,null,Aa,Wa),Na&&I())})}; | 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 |
f=mxUtils.button(f,c);f.insertBefore(v,f.firstChild);f.style.marginTop="6px";f.className="geBigButton";f.style.fontSize="18px";f.style.padding="14px";k.appendChild(m);k.appendChild(b);k.appendChild(f);this.container=k},FontDialog=function(b,e,f,c,k){function m(B){this.style.border="";13==B.keyCode&&x.click()}var u=document.createElement("table"),v=document.createElement("tbody");u.style.marginTop="8px";var E=document.createElement("tr");var D=document.createElement("td");D.colSpan=2;D.style.whiteSpace= | 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.prev.getId():"";null!=e.page.getName()&&b[E].getName()!=e.page.getName()&&(L.name=e.page.getName());mxUtils.isEmptyObject(L)||(u[D]=L)}delete m[b[E].getId()];v=b[E]}for(D in m)e=m[D],f.push({id:e.page.getId(),data:mxUtils.getXml(e.page.node),previous:null!=e.prev?e.prev.getId():""});mxUtils.isEmptyObject(u)||(k[EditorUi.DIFF_UPDATE]=u);0<c.length&&(k[EditorUi.DIFF_REMOVE]=c);0<f.length&&(k[EditorUi.DIFF_INSERT]=f)}return 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 |
mxEvent.getClientX(M),mxEvent.getClientY(M),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(M);this.graph.isMouseDown=!0;d.hoverIcons.reset();mxEvent.consume(M)})))};var N=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){N.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=
this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var Q=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(M){Q.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=M?"":"none")};var P=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(M,p){P.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){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 |
mxResources.get("download"),!1,!1,B,null,1<I,F,q,x,t);B=this.isServices(I)?4<I?390:280:160;this.showDialog(d.container,420,B,!0,!0)}d.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(d,g,n,q,t,x){};EditorUi.prototype.getServiceForName=function(d){return null};EditorUi.prototype.getTitleForService=function(d){return mxResources.get(d)};EditorUi.prototype.pickFolder=function(d, | 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 |
App.prototype.addLanguageMenu=function(b,e,f){var c=null;null!=this.menus.get("language")&&(c=document.createElement("div"),c.setAttribute("title",mxResources.get("language")),c.className="atlas"!=Editor.currentTheme?"geIcon geAdaptiveAsset":"",c.style.backgroundImage="url("+Editor.globeImage+")",c.style.backgroundPosition="right center",c.style.backgroundRepeat="no-repeat",c.style.backgroundSize="19px 19px",c.style.width="19px",c.style.height="19px",mxUtils.setOpacity(c,40),c.style.position="absolute",
c.style.cursor="pointer",c.style.bottom="20px",c.style.right=null!=f?f:"22px",e&&(c.style.direction="rtl",c.style.textAlign="right",c.style.right=null!=f?f:"24px",e=document.createElement("span"),e.style.display="inline-block",e.style.fontSize="12px",e.style.margin="2px 24px 0 0",e.style.userSelect="none",mxUtils.write(e,mxResources.get("language")),c.appendChild(e),e.className="atlas"!=Editor.currentTheme?"geAdaptiveAsset":""),mxEvent.addListener(c,"click",mxUtils.bind(this,function(k){this.editor.graph.popupMenuHandler.hideMenu();
var m=new mxPopupMenu(this.menus.get("language").funct);m.div.className+=" geMenubarMenu";m.smartSeparators=!0;m.showDisabled=!0;m.autoExpand=!0;m.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(m,arguments);m.destroy()});var u=mxUtils.getOffset(c);m.popup(u.x,u.y+c.offsetHeight,null,k);this.setCurrentMenu(m)})),b.appendChild(c));return 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 |
l?l.getElementsByTagName("parsererror"):null;null!=l&&0<l.length&&(J=z||mxResources.get("invalidChars"),z=l[0].getElementsByTagName("div"),0<z.length&&(J=mxUtils.getTextContent(z[0])));return null!=J?mxUtils.trim(J):J};Editor.addRetryToError=function(l,z){null!=l&&(l=null!=l.error?l.error:l,null==l.retry&&(l.retry=z))};Editor.mermaidToDrawio=function(l,z,J){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(l,z,J)};Editor.configure=function(l){if(null!=l){Editor.config=l;Editor.configVersion= | 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)),null!=u&&0<u.length&&(m=u));this.insertFile(e.name,m,mxUtils.bind(this,function(v){f(e.name,v)}),c)}),mxUtils.bind(this,function(){this.ui.spinner.stop()})):(this.ui.spinner.stop(),c({message:mxResources.get("errorLoadingFile")}))}),c,k)}})();OneDriveFile=function(b,e,f){DrawioFile.call(this,b,e);this.meta=f};mxUtils.extend(OneDriveFile,DrawioFile);OneDriveFile.prototype.autosaveDelay=500;OneDriveFile.prototype.isRealtimeSupported=function(){return!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 |
l.ownerSVGElement.parentNode.insertBefore(this.webKitForceRepaintNode,l.ownerSVGElement))}};var N=Graph.prototype.refresh;Graph.prototype.refresh=function(){N.apply(this,arguments);this.refreshBackgroundImage()};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var Q=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){Q.apply(this,
arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(l){"data:action/json,"==l.substring(0,17)&&(l=JSON.parse(l.substring(17)),null!=l.actions&&this.executeCustomActions(l.actions))};Graph.prototype.executeCustomActions=function(l,z){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&window.clearTimeout(this.pendingWaitThread),null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions")); | 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 |
x(G)}));else if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d,g))this.isOffline()?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):this.parseFile(n,mxUtils.bind(this,function(G){4==G.readyState&&(this.spinner.stop(),200<=G.status&&299>=G.status?x(G.responseText):this.handleError({message:mxResources.get(413==G.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(d))/(\.json)$/i.test(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 |
z);EditorUi.debug("P2PCollab: error socket on",K.joinId);N||M!=K.joinId||(P==M&&(EditorUi.debug("P2PCollab: joinInProgress in error on",K.joinId),P=!1),l||(EditorUi.debug("P2PCollab: calling rejoin on",K.joinId),l=!0,this.joinFile(!0)));e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}));e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}catch(z){p=z,e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}};this.destroy=function(){if(!N){EditorUi.debug("P2PCollab: destroyed");
N=!0;for(sessionId in g)D(sessionId);null!=this.mouseListeners&&A.removeMouseListener(this.mouseListeners);null!=this.selectionChangeListener&&A.getSelectionModel().removeListener(this.selectionChangeListener);null!=this.shareCursorPositionListener&&b.removeListener(this.shareCursorPositionListener);null!=this.cursorHandler&&(mxEvent.removeListener(A.container,"scroll",this.cursorHandler),A.getView().removeListener(mxEvent.SCALE,this.cursorHandler),A.getView().removeListener(mxEvent.TRANSLATE,this.cursorHandler),
A.getView().removeListener(mxEvent.SCALE_AND_TRANSLATE,this.cursorHandler),b.editor.removeListener("pageSelected",this.cursorHandler),b.removeListener(this.cursorHandler));null!=H&&1<=H.readyState&&(H.close(1E3),H=null);for(var C in F)null!=F[C]&&F[C].destroy();e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}}}; | 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 |
DrawioFile.prototype.handleConflictError=function(b,e){var f=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),c=mxUtils.bind(this,function(u){this.handleFileError(u,!0)}),k=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.editor.setStatus(""),this.save(!0,f,c,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),m=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
this.synchronizeFile(mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&this.save(!0,f,c,null,null,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage)}),c)});"none"==DrawioFile.SYNC?this.showCopyDialog(f,c,k):this.invalidChecksum?this.showRefreshDialog(f,c,this.getErrorMessage(b)):e?this.showConflictDialog(k,m):this.addConflictStatus(this.getErrorMessage(b),mxUtils.bind(this,function(){this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("updatingDocument")));
this.synchronizeFile(f,c)}))};DrawioFile.prototype.getErrorMessage=function(b){var e=null!=b?null!=b.error?b.error.message:b.message:null;null==e&&null!=b&&b.code==App.ERROR_TIMEOUT?e=mxResources.get("timeout"):"0"==e&&(e=mxResources.get("noResponse"));return e};DrawioFile.prototype.isOverdue=function(){return null!=this.ageStart&&Date.now()-this.ageStart.getTime()>=this.ui.warnInterval}; | 1 | JavaScript | CWE-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");J("img","src");0==T&&z(l)};Editor.base64Encode=function(l){for(var z="",J=0,O=l.length,T,W,V;J<O;){T=l.charCodeAt(J++)&255;if(J==O){z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>2);z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&3)<<4);z+="==";break}W=l.charCodeAt(J++);if(J==O){z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>2);z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&
3)<<4|(W&240)>>4);z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((W&15)<<2);z+="=";break}V=l.charCodeAt(J++);z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>2);z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&3)<<4|(W&240)>>4);z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((W&15)<<2|(V&192)>>6);z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(V&63)}return z}; | 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 |
x.getGlobalVariable=function(U){return"page"==U?F.getName():"pagenumber"==U?1:I.apply(this,arguments)};document.body.appendChild(x.container);x.model.setRoot(F.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(U){try{null==G&&(G=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var R=U.toDataURL("image/png");R=Editor.writeGraphModelToPng(R,"tEXt","mxfile",encodeURIComponent(G));d(R.substring(R.lastIndexOf(",")+1));x!=this.editor.graph&&x.container.parentNode.removeChild(x.container)}catch(N){null!= | 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 |
encodeURIComponent(z));J(l,z)};Editor.prototype.embedCssFonts=function(l,z){var J=l.split("url("),O=0;null==this.cachedFonts&&(this.cachedFonts={});var T=mxUtils.bind(this,function(){if(0==O){for(var X=[J[0]],Z=1;Z<J.length;Z++){var Y=J[Z].indexOf(")");X.push('url("');X.push(this.cachedFonts[Editor.trimCssUrl(J[Z].substring(0,Y))]);X.push('"'+J[Z].substring(Y))}z(X.join(""))}});if(0<J.length){for(l=1;l<J.length;l++){var W=J[l].indexOf(")"),V=null,S=J[l].indexOf("format(",W);0<S&&(V=Editor.trimCssUrl(J[l].substring(S+
7,J[l].indexOf(")",S))));mxUtils.bind(this,function(X){if(null==this.cachedFonts[X]){this.cachedFonts[X]=X;O++;var Z="application/x-font-ttf";if("svg"==V||/(\.svg)($|\?)/i.test(X))Z="image/svg+xml";else if("otf"==V||"embedded-opentype"==V||/(\.otf)($|\?)/i.test(X))Z="application/x-font-opentype";else if("woff"==V||/(\.woff)($|\?)/i.test(X))Z="application/font-woff";else if("woff2"==V||/(\.woff2)($|\?)/i.test(X))Z="application/font-woff2";else if("eot"==V||/(\.eot)($|\?)/i.test(X))Z="application/vnd.ms-fontobject";
else if("sfnt"==V||/(\.sfnt)($|\?)/i.test(X))Z="application/font-sfnt";this.mapFontUrl(Z,X,mxUtils.bind(this,function(Y,aa){this.loadUrl(aa,mxUtils.bind(this,function(ca){this.cachedFonts[X]=ca;O--;T()}),mxUtils.bind(this,function(ca){O--;T()}),!0,null,"data:"+Y+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(J[l].substring(0,W)),V)}T()}else z(l)};Editor.prototype.loadFonts=function(l){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(z){this.resolvedFontCss= | 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 |
typeof mxMermaidToDrawio)ea=da=wa;wa=l.cloneNode(!0);na.appendChild(wa);Ma=function(Pa){O=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display};Oa=function(Pa){O||B(Ta,mxEvent.getClientX(Pa),mxEvent.getClientY(Pa),Sa,Da)};mxEvent.addGestureListeners(Sa,Ma,null,Oa);mxEvent.addGestureListeners(wa,Ma,null,Oa)},function(wa){b.handleError(wa)})});Ka.setAttribute("disabled","disabled");Ka.className="geBtn gePrimaryBtn";oa=function(){window.setTimeout(function(){""!=ma.value?Ka.removeAttribute("disabled"): | 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 N=new Spinner({left:"50%",lines:12,length:8,width:3,radius:5,rotate:0,color:"#000",speed:1,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9}),Q=new Editor,P=null,M=null,p=null,y=!1,C=[],K=null,l=null;this.getSelectedItem=function(){null!=M&&m(M);return M};if(null==g("#mxODPickerCss")){var z=document.head||document.getElementsByTagName("head")[0],J=document.createElement("style");z.appendChild(J);J.type="text/css";J.id="mxODPickerCss";J.appendChild(document.createTextNode(R))}b.innerHTML= | 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("mermaid")+"...","mermaid");H.showDialog(n.container,620,420,!0,!1);n.init()}));var d="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),g=function(n,q,t,x){n.addItem(t,null,mxUtils.bind(this,function(){var B=new CreateGraphDialog(H,t,x);H.showDialog(B.container,620,420,!0,!1);B.init()}),q)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(n,q){for(var t=0;t<d.length;t++)"-"==d[t]?n.addSeparator(q):g(n,q,mxResources.get(d[t])+ | 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.updateDocumentTitle();this.refresh()}));g.addListener("enabledChanged",mxUtils.bind(this,function(){g.isEnabled()||this.hideShapePicker()}));d=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==d.embedViewport)mxUtils.fit(this.div);else{var C=parseInt(this.div.offsetLeft),K=parseInt(this.div.offsetWidth),l=d.embedViewport.x+d.embedViewport.width,z=parseInt(this.div.offsetTop),J=parseInt(this.div.offsetHeight),O=d.embedViewport.y+d.embedViewport.height;this.div.style.left=
Math.max(d.embedViewport.x,Math.min(C,l-K))+"px";this.div.style.top=Math.max(d.embedViewport.y,Math.min(z,O-J))+"px";this.div.style.height=Math.min(d.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(d.embedViewport.width,parseInt(this.div.style.width))+"px"}};if(!this.editor.chromeless||this.editor.editable)if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme)M=Editor.currentTheme,Editor.currentTheme="",this.doSetCurrentTheme(M,0,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 |
(null==P.getCell()||P.getCell()==H)};L.panningHandler.isForcePanningEvent=function(P){return 2==P.evt.button};var d=L.isCellSelectable;L.isCellSelectable=function(P){return P==H?!1:d.apply(this,arguments)};L.getLinkForCell=function(){return null};var g=L.view.getState(H);A=L.getAllConnectionConstraints(g);for(var n=0;null!=A&&n<A.length;n++){var q=L.getConnectionPoint(g,A[n]);m(q.x-3,q.y-3,A[n])}L.fit(8);L.center();n=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){L.zoomIn()}, | 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.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,W,V,S,X),this.lastX=S,this.lastY=X)};l.prototype.curveTo=function(W,V,S,X,Z,Y){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,W,V,S,X,Z,Y),this.lastX=Z,this.lastY=Y)};l.prototype.arcTo=function(W,V,S,X,Z,Y,aa){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var ca=mxUtils.arcToCurves(this.lastX,this.lastY,W,V,S,X,Z,Y,aa);if(null!=ca)for(var da=0;da<ca.length;da+=
6)this.curveTo(ca[da],ca[da+1],ca[da+2],ca[da+3],ca[da+4],ca[da+5]);this.lastX=Y;this.lastY=aa}};l.prototype.rect=function(W,V,S,X){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(W,V,S,X,this.getStyle(!0,!0)))};l.prototype.ellipse=function(W,V,S,X){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(W+S/2,V+X/2,S,X,this.getStyle(!0,!0)))};l.prototype.roundrect= | 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.charCodeAt(0)<<24)}function S(Y){return String.fromCharCode(Y>>24&255,Y>>16&255,Y>>8&255,Y&255)}l=l.substring(l.indexOf(",")+1);l=window.atob?atob(l):Base64.decode(l,!0);var X=0;if(W(l,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=T&&T();else if(W(l,4),"IHDR"!=W(l,4))null!=T&&T();else{W(l,17);T=l.substring(0,X);do{var Z=V(l);if("IDAT"==W(l,4)){T=l.substring(0,X-8);"pHYs"==z&&"dpi"==J?(J=Math.round(O/.0254),J=S(J)+S(J)+String.fromCharCode(1)):J=J+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 |
(EditorUi.prototype.maxImageBytes=l.maxImageBytes);null!=l.maxImageSize&&(EditorUi.prototype.maxImageSize=l.maxImageSize);null!=l.shareCursorPosition&&(EditorUi.prototype.shareCursorPosition=l.shareCursorPosition);null!=l.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=l.showRemoteCursors);null!=l.restrictExport&&(DrawioFile.RESTRICT_EXPORT=l.restrictExport)}};Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.configureFontCss= | 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 |
Editor.createRoughCanvas=function(l){var z=rough.canvas({getContext:function(){return l}});z.draw=function(J){var O=J.sets||[];J=J.options||this.getDefaultOptions();for(var T=0;T<O.length;T++){var W=O[T];switch(W.type){case "path":null!=J.stroke&&this._drawToContext(l,W,J);break;case "fillPath":this._drawToContext(l,W,J);break;case "fillSketch":this.fillSketch(l,W,J)}}};z.fillSketch=function(J,O,T){var W=l.state.strokeColor,V=l.state.strokeWidth,S=l.state.strokeAlpha,X=l.state.dashed,Z=T.fillWeight; | 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)M=N(y),p.push([M.x,M.y]),v.push(M);c.setAttribute("d",PerfectFreehand.getSvgPathFromStroke(p,t))}else{m+=" L"+M.x+" "+M.y;p="";v=[];for(y=2;y<d.length;y+=2)M=N(y),p+=" L"+M.x+" "+M.y,v.push(M);c.setAttribute("d",m+p)}L&&(M=b.view.translate,b.scrollRectToVisible((new mxRectangle(Q.x-M.x,Q.y-M.y)).grow(20)));P.consume()}}),mouseUp:mxUtils.bind(this,function(Q,P){c&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(G(P.getEvent()),P.consume())})});var U=function(Q){return mxUtils.convertPoint(b.container,
mxEvent.getClientX(Q),mxEvent.getClientY(Q))},R=function(Q){for(d.push(Q);d.length>f;)d.shift()},N=function(Q){var P=d.length;if(1===P%2||P>=f){var M=0,p=0,y,C=0;for(y=Q;y<P;y++)C++,Q=d[y],M+=Q.x,p+=Q.y;return{x:M/C,y:p/C}}return null}}}mxFreehand.prototype.NO_SMOOTHING=1;mxFreehand.prototype.MILD_SMOOTHING=4;mxFreehand.prototype.NORMAL_SMOOTHING=8;mxFreehand.prototype.VERY_SMOOTH_SMOOTHING=12;mxFreehand.prototype.SUPER_SMOOTH_SMOOTHING=16;mxFreehand.prototype.HYPER_SMOOTH_SMOOTHING=20;function P2PCollab(b,e,f){function c(C,K){try{if(!N){var l=e.file.getCurrentUser();if(R&&null!=l&&null!=l.displayName){var z={from:G,id:n,type:C,sessionId:e.clientId,userId:l.id,username:l.displayName,data:K,protocol:DrawioFileSync.PROTOCOL,editor:EditorUi.VERSION};z={bytes:e.objectToString(z),data:"aes"};z=JSON.stringify(z);Q&&"cursor"!=C&&EditorUi.debug("P2PCollab: sending to socket server",[z]);n++;l=!Q&&("cursor"==C||"selectionChange"==C);U&&!l&&y("message",z);if(l)for(p2pId in F)F[p2pId].send(z)}}}catch(J){null!= | 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(l,z){Graph.addFont(l,z);document.execCommand("fontname",!1,l);if(null!=z){var J=this.cellEditor.textarea.getElementsByTagName("font");z=Graph.getFontUrl(l,z);for(var O=0;O<J.length;O++)J[O].getAttribute("face")==l&&J[O].getAttribute("data-font-src")!=z&&J[O].setAttribute("data-font-src",z)}};var x=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return x.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars= | 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==J%2,ba.flipBkg),z.parentNode.insertBefore(qa,z.nextSibling),z=qa;l.appendChild(da);Ba();return l};StyleFormatPanel.prototype.addStyles=function(l){if(null!=this.defaultColorSchemes){var z=function(ba){mxEvent.addListener(ba,"mouseenter",function(){ba.style.opacity="1"});mxEvent.addListener(ba,"mouseleave",function(){ba.style.opacity="0.5"})},J=this.editorUi,O=J.editor.graph,T=document.createElement("div");T.style.whiteSpace="nowrap";T.style.paddingLeft="24px";T.style.paddingRight="20px";l.style.paddingLeft= | 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 |
""),Ea.value=ra,Ea.style.width="96px",Ea.style.borderWidth="0px",Ia.appendChild(Ea)):(Ia.innerHTML=mxUtils.htmlEntities(decodeURIComponent(ra)),mxEvent.addListener(Ia,"click",mxUtils.bind(Y,function(){function Ua(){var fa=ja.value;fa=0==fa.length&&"string"!=Ha?0:fa;va.allowAuto&&(null!=fa.trim&&"auto"==fa.trim().toLowerCase()?(fa="auto",Ha="string"):(fa=parseFloat(fa),fa=isNaN(fa)?0:fa));null!=va.min&&fa<va.min?fa=va.min:null!=va.max&&fa>va.max&&(fa=va.max);fa=encodeURIComponent(("int"==Ha?parseInt(fa):
fa)+"");O(pa,fa,va)}var ja=document.createElement("input");T(Ia,ja,!0);ja.value=decodeURIComponent(ra);ja.className="gePropEditor";"int"!=Ha&&"float"!=Ha||va.allowAuto||(ja.type="number",ja.step="int"==Ha?"1":"any",null!=va.min&&(ja.min=parseFloat(va.min)),null!=va.max&&(ja.max=parseFloat(va.max)));l.appendChild(ja);mxEvent.addListener(ja,"keypress",function(fa){13==fa.keyCode&&Ua()});ja.focus();mxEvent.addListener(ja,"blur",function(){Ua()})})));va.isDeletable&&(Ea=mxUtils.button("-",mxUtils.bind(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 |
d.indexOf("PK"))this.importZipFile(n,mxUtils.bind(this,function(G){this.spinner.stop();x(G)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(d,g,q)}));else{if("image/png"==n.type.substring(0,9))d=this.extractGraphModelFromPng(d);else if("application/pdf"==n.type){var B=Editor.extractGraphModelFromPdf(d);null!=B&&(t=null,q=!0,d=B)}this.spinner.stop();this.openLocalFile(d,g,q,t,null!=t?n:null)}}};EditorUi.prototype.openFiles=function(d,g){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var n=
0;n<d.length;n++)mxUtils.bind(this,function(q){var t=new FileReader;t.onload=mxUtils.bind(this,function(x){try{this.openFileHandle(x.target.result,q.name,q,g)}catch(B){this.handleError(B)}});t.onerror=mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x);window.openFile=null});"image"!==q.type.substring(0,5)&&"application/pdf"!==q.type||"image/svg"===q.type.substring(0,9)?t.readAsText(q):t.readAsDataURL(q)})(d[n])};EditorUi.prototype.openLocalFile=function(d,g,n,q,t){var x=this.getCurrentFile(), | 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!=x.hoverIcons){var Q=x.hoverIcons.update;x.hoverIcons.update=function(){B.freehand.isDrawing()||Q.apply(this,arguments)}}if(null!=B.freehand){var P=B.freehand.createStyle;B.freehand.createStyle=function(S){return P.apply(this,arguments)+"sketch=0;"}}x.editor.addListener("statusChanged",mxUtils.bind(this,function(){x.setStatusText(x.editor.getStatus())}));x.setStatusText(x.editor.getStatus());var M=x.menus.get("viewZoom");if(null!=M){var p=function(S){if(mxEvent.isAltDown(S))x.hideCurrentMenu(),
x.actions.get("customZoom").funct(),mxEvent.consume(S);else if("geMenuItem"==mxEvent.getSource(S).className||mxEvent.isShiftDown(S))x.hideCurrentMenu(),x.actions.get("smartFit").funct(),mxEvent.consume(S)},y=x.actions.get("zoomIn"),C=x.actions.get("zoomOut"),K=x.actions.get("resetView"),l=x.actions.get("undo"),z=x.actions.get("redo"),J=d("",l.funct,null,mxResources.get("undo")+" ("+l.shortcut+")",l,Editor.undoImage),O=d("",z.funct,null,mxResources.get("redo")+" ("+z.shortcut+")",z,Editor.redoImage), | 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 |
{replAllMrk:t,replAllPos:q};A.isCellEditable(O)&&(A.model.setValue(O,M(T,n,I.value,q-n.length,A.getCurrentCellStyle(O))),z++)}K!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,K));mxUtils.write(P,mxResources.get("matchesRepl",[z]))}catch(V){b.handleError(V)}finally{A.getModel().endUpdate(),b.editor.graph.setSelectionCells(l),b.editor.graph.rendering=!0}t++});C.setAttribute("title",mxResources.get("replaceAll"));C.style.float="none";C.style.width="120px";C.style.marginTop="6px";C.style.marginLeft= | 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]&&B.push("page-id="+this.currentPage.getId());return B};EditorUi.prototype.createLink=function(d,g,n,q,t,x,B,G,I,F){I=this.createUrlParameters(d,g,n,q,t,x,I);d=this.getCurrentFile();g=!0;null!=B?n="#U"+encodeURIComponent(B):(d=this.getCurrentFile(),G||null==d||d.constructor!=window.DriveFile?n="#R"+encodeURIComponent(n?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(n="#"+d.getHash(),g=!1));g&&
null!=d&&null!=d.getTitle()&&d.getTitle()!=this.defaultFilename&&I.push("title="+encodeURIComponent(d.getTitle()));F&&1<n.length&&(I.push("open="+n.substring(1)),n="");return(q&&"1"!=urlParams.dev?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<I.length?"?"+I.join("&"):"")+n};EditorUi.prototype.createHtml=function(d,g,n,q,t,x,B,G,I,F,U,R){this.getBasenames();var 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 |
function(){return this.user};DriveClient.prototype.getUsersList=function(){var f=[],c=JSON.parse(this.getPersistentToken(!0)),k=null;if(null!=c){null!=c.current&&(k=c.current.userId,f.push(c[k].user),f[0].isCurrent=!0);for(var m in c)"current"!=m&&m!=k&&f.push(c[m].user)}return f};DriveClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&userId="+this.userId+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();
this.setUser(null);b=null};DriveClient.prototype.execute=function(f){var c=mxUtils.bind(this,function(k){this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(m,u){this.authorize(!1,mxUtils.bind(this,function(){null!=u&&u();f()}),mxUtils.bind(this,function(v){var E=null!=v.message?v.message:mxResources.get("cannotLogin");null!=v&&null!=v.error&&403==v.error.code&&null!=v.error.data&&0<v.error.data.length&&"domainPolicy"==v.error.data[0].reason&&(E=v.error.message);this.logout();this.ui.showError(mxResources.get("error"), | 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.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){v.refresh();this.window.fit()}));b.installResizeHandler(this,!0)},AuthDialog=function(b,e,f,c){var k=document.createElement("div");k.style.textAlign="center";var m=document.createElement("p");m.style.fontSize="16pt";m.style.padding="0px";m.style.margin="0px";m.style.color="gray";mxUtils.write(m,mxResources.get("authorizationRequired"));var u="Unknown",v=document.createElement("img");v.setAttribute("border","0");
v.setAttribute("align","absmiddle");v.style.marginRight="10px";e==b.drive?(u=mxResources.get("googleDrive"),v.src=IMAGE_PATH+"/google-drive-logo-white.svg"):e==b.dropbox?(u=mxResources.get("dropbox"),v.src=IMAGE_PATH+"/dropbox-logo-white.svg"):e==b.oneDrive?(u=mxResources.get("oneDrive"),v.src=IMAGE_PATH+"/onedrive-logo-white.svg"):e==b.gitHub?(u=mxResources.get("github"),v.src=IMAGE_PATH+"/github-logo-white.svg"):e==b.gitLab?(u=mxResources.get("gitlab"),v.src=IMAGE_PATH+"/gitlab-logo.svg",v.style.width=
"32px"):e==b.trello&&(u=mxResources.get("trello"),v.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizeThisAppIn",[u]));var E=document.createElement("input");E.setAttribute("type","checkbox");u=mxUtils.button(mxResources.get("authorize"),function(){c(E.checked)});u.insertBefore(v,u.firstChild);u.style.marginTop="6px";u.className="geBigButton";u.style.fontSize="18px";u.style.padding="14px";k.appendChild(m);k.appendChild(b);k.appendChild(u);
f&&(f=document.createElement("p"),f.style.marginTop="20px",f.appendChild(E),m=document.createElement("span"),mxUtils.write(m," "+mxResources.get("rememberMe")),f.appendChild(m),k.appendChild(f),E.checked=!0,E.defaultChecked=!0,mxEvent.addListener(m,"click",function(D){E.checked=!E.checked;mxEvent.consume(D)}));this.container=k},MoreShapesDialog=function(b,e,f){f=null!=f?f:b.sidebar.entries;var c=document.createElement("div"),k=[];if(null!=b.sidebar.customEntries)for(var m=0;m<b.sidebar.customEntries.length;m++){for(var 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 |
DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,e){b([])};DrawioFile.prototype.addComment=function(b,e,f){e(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,e){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,e)};LocalFile=function(b,e,f,c,k,m){DrawioFile.call(this,b,e);this.title=f;this.mode=c?null:App.MODE_DEVICE;this.fileHandle=k;this.desc=m};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};LocalFile.prototype.getTitle=function(){return this.title}; | 1 | JavaScript | CWE-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 |
method:"POST",params:{title:c,properties:[{key:"channel",value:Editor.guid()}]}},k,m)};DriveClient.prototype.renameFile=function(f,c,k,m){null!=f&&null!=c&&this.executeRequest(this.createDriveRequest(f,{title:c}),k,m)};DriveClient.prototype.moveFile=function(f,c,k,m){null!=f&&null!=c&&this.executeRequest(this.createDriveRequest(f,{parents:[{kind:"drive#fileLink",id:c}]}),k,m)};DriveClient.prototype.createDriveRequest=function(f,c){return{url:"/files/"+f+"?uploadType=multipart&supportsAllDrives=true", | 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):k(!1)};OneDriveClient.prototype.checkToken=function(e,f){null==b||null==this.tokenRefreshThread||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(e,null!=f?f:this.emptyFn):e()};OneDriveClient.prototype.getItemRef=function(e){var f=e.split("/");return 1<f.length?{driveId:f[0],id:f[1]}:{id:e}};OneDriveClient.prototype.getItemURL=function(e,f){var c=e.split("/");return 1<c.length?(e=c[1],(f?"":this.baseUrl)+"/drives/"+c[0]+("root"==e?"/root":"/items/"+e)):(f?"":this.baseUrl)+"/me/drive/items/"+
e};OneDriveClient.prototype.getLibrary=function(e,f,c){this.getFile(e,f,c,!1,!0)};OneDriveClient.prototype.removeExtraHtmlContent=function(e){var f=e.lastIndexOf('<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"><meta name="Robots" ');0<f&&(e=e.substring(0,f));return e};OneDriveClient.prototype.getFile=function(e,f,c,k,m){m=null!=m?m:!1;this.executeRequest(this.getItemURL(e),mxUtils.bind(this,function(u){if(200<=u.getStatus()&&299>=u.getStatus()){var v=JSON.parse(u.getText()), | 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,null!=G&&q&&(t.shadowVisible=G),this.editor.graph.model.execute(t))});d=new BackgroundImageDialog(this,d,g,n,q);this.showDialog(d.container,400,q?240:220,!0,!0);d.init()};EditorUi.prototype.showLibraryDialog=function(d,g,n,q,t){d=new LibraryDialog(this,d,g,n,q,t);this.showDialog(d.container,640,440,!0,!1,mxUtils.bind(this,function(x){x&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));d.init()};var f=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(d){var 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 |
0,0,80,30,"ellipse");E(D)}finally{m.getModel().endUpdate()}if("horizontalTree"==f){var A=new mxCompactTreeLayout(m);A.edgeRouting=!1;A.levelDistance=30;u="edgeStyle=elbowEdgeStyle;elbow=horizontal;"}else"verticalTree"==f?(A=new mxCompactTreeLayout(m,!1),A.edgeRouting=!1,A.levelDistance=30,u="edgeStyle=elbowEdgeStyle;elbow=vertical;"):"radialTree"==f?(A=new mxRadialTreeLayout(m,!1),A.edgeRouting=!1,A.levelDistance=80):"verticalFlow"==f?A=new mxHierarchicalLayout(m,mxConstants.DIRECTION_NORTH):"horizontalFlow"==
f?A=new mxHierarchicalLayout(m,mxConstants.DIRECTION_WEST):"circle"==f?A=new mxCircleLayout(m):(A=new mxFastOrganicLayout(m,!1),A.forceConstant=80);if(null!=A){var L=function(n,q){m.getModel().beginUpdate();try{null!=n&&n(),A.execute(m.getDefaultParent(),D)}catch(t){throw t;}finally{n=new mxMorphing(m),n.addListener(mxEvent.DONE,mxUtils.bind(this,function(){m.getModel().endUpdate();null!=q&&q()})),n.startAnimation()}},H=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(n,q,
t,x,B){H.apply(this,arguments);L()};m.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);L()};m.connectionHandler.addListener(mxEvent.CONNECT,function(){L()})}var d=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){null!=k.parentNode&&(m.destroy(),k.parentNode.removeChild(k));b.hideDialog()})});d.className="geBtn";b.editor.cancelFirst&&c.appendChild(d);var g=mxUtils.button(mxResources.get("insert"),function(n){m.clearCellOverlays(); | 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 |
libs:ja.getAttribute("libs"),clibs:ja.getAttribute("clibs"),title:ja.getAttribute("title")}),ja=ja.nextSibling;U(Ha)}});var Va=function(ja,fa,ma){za.style.display="";Fa.stop();K=!1;if(l)l=!1;else if(fa)ba.innerText=fa;else{ma=ma||{};fa=0;for(var na in ma)fa+=ma[na].length;0==ja.length&&0==fa?ba.innerText=mxResources.get("noDiagrams"):F(ja,!1,S,0==fa?null:ma)}};Q(V);var Ua=null;mxEvent.addListener(Ca,"keyup",p);mxEvent.addListener(Ca,"search",p);mxEvent.addListener(Ca,"input",p);mxEvent.addListener(la,
"click",function(ja){G(!1,!1)});L&&mxEvent.addListener(ya,"click",function(ja){G(!1,!0)});H&&mxEvent.addListener(C.querySelector(".geTempDlgLinkToDiagramBtn"),"click",function(ja){G(!0)});mxEvent.addListener(C.querySelector(".geTempDlgCancelBtn"),"click",function(){null!=f&&f();g||b.hideDialog(!0)})};TemplatesDialog.tagsList={}; | 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;n<d.length;n++)mxUtils.bind(this,function(q){var t=new FileReader;t.onload=mxUtils.bind(this,function(x){try{this.openFileHandle(x.target.result,q.name,q,g)}catch(B){this.handleError(B)}});t.onerror=mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x);window.openFile=null});"image"!==q.type.substring(0,5)&&"application/pdf"!==q.type||"image/svg"===q.type.substring(0,9)?t.readAsText(q):t.readAsDataURL(q)})(d[n])};EditorUi.prototype.openLocalFile=function(d,g,n,q,t){var x=this.getCurrentFile(),
B=mxUtils.bind(this,function(){window.openFile=null;if(null==g&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var G=mxUtils.parseXml(d);null!=G&&(this.editor.setGraphXml(G.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,d,g||this.defaultFilename,n,q,t))});if(null!=d&&0<d.length)null==x||!x.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=q)?B():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=q)&&null!=x&&x.isModified()?this.confirm(mxResources.get("allChangesLost"),
null,B,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(d,g),window.openWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=x&&x.isModified()?this.confirm(mxResources.get("allChangesLost"),null,B,mxResources.get("cancel"),mxResources.get("discardChanges")):B()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var d={};if(null!=this.pages)for(var 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 |
Aa.forceConstant=3*V;Aa.disableEdgeStyle=!1;Aa.resetEdges=!1;var La=Aa.isVertexIgnored;Aa.isVertexIgnored=function(Da){return La.apply(this,arguments)||0>mxUtils.indexOf(x,Da)};this.executeLayout(function(){Aa.execute(I.getDefaultParent());na()},!0,Z);Z=null}}this.hideDialog()}finally{I.model.endUpdate()}null!=Z&&Z()}}catch(Da){this.handleError(Da)}};EditorUi.prototype.getSearch=function(d){var g="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=d&&0<window.location.search.length){var n="?",
q;for(q in urlParams)0>mxUtils.indexOf(d,q)&&null!=urlParams[q]&&(g+=n+q+"="+urlParams[q],n="&")}else g=window.location.search;return g};EditorUi.prototype.getUrl=function(d){d=null!=d?d:window.location.pathname;var g=0<d.indexOf("?")?1:0;if("1"==urlParams.offline)d+=window.location.search;else{var n="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),q;for(q in urlParams)0>mxUtils.indexOf(n,q)&&(d=0==g?d+"?":d+"&",null!=urlParams[q]&&(d+=q+"="+urlParams[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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.