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 |
|---|---|---|---|---|---|---|---|
"pHYs","dpi",q));else throw{message:mxResources.get("unknownError")};return c};EditorUi.prototype.saveCanvas=function(c,e,k,q,p){var t="jpeg"==k?"jpg":k;q=this.getBaseFilename(q)+(null!=e?".drawio":"")+"."+t;c=this.createImageDataUri(c,e,k,p);this.saveData(q,t,c.substring(c.lastIndexOf(",")+1),"image/"+k,!0)};EditorUi.... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
f},ConnectionPointsDialog=function(b,f){function m(){null!=u&&u.destroy()}var d=document.createElement("div");d.style.userSelect="none";var u=null;this.init=function(){function v(E,A,N){E=new mxCell("",new mxGeometry(E,A,6,6),"shape=mxgraph.basic.x;fillColor=#29b6f2;strokeColor=#29b6f2;points=[];rotatable=0;resizable=0... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
O));var P=document.createElement("link");P.setAttribute("rel","preload");P.setAttribute("href",O);P.setAttribute("as","font");P.setAttribute("crossorigin","");y.parentNode.insertBefore(P,y)}}}};Editor.trimCssUrl=function(g){return g.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGL... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxUtils.bind(this,function(L,U){L=null!=e.backgroundImage?e.backgroundImage.originalSrc:null;if(null!=L){var g=L.indexOf(",");if(0<g)for(L=L.substring(g+1),U=U.getProperty("patches"),g=0;g<U.length;g++)if(null!=U[g][EditorUi.DIFF_UPDATE]&&null!=U[g][EditorUi.DIFF_UPDATE][L]||null!=U[g][EditorUi.DIFF_REMOVE]&&0<=mxUtils... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.styleElt=document.createElement("style");Editor.styleElt.type="text/css";Editor.styleElt.innerHTML=Editor.createMinimalCss();document.getElementsByTagName("head")[0].appendChild(Editor.styleElt);Editor.pro... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"checked"):(J=parseInt(N[5]),x.value=J,q.setAttribute("checked","checked"),t.style.visibility="visible"):k.setAttribute("checked","checked")):m=null}else m=null}catch(P){}c.style=e+(m?m:u());c.vertex=!0;G.addCell(c,null,null,null,null);G.selectAll();G.addListener(mxEvent.CELLS_MOVED,B);G.addListener(mxEvent.CELLS_RESIZ... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Menus.prototype.init=function(){function m(l,n,z){this.ui=l;this.previousExtFonts=this.extFonts=n;this.prevCustomFonts=this.customFonts=z}f.apply(this,arguments);var d=this.editorUi,u=d.editor.graph,v=mxUtils.bind(u,u.isEnabled),D=("1"!=urlParams.embed&&"0"!=urlParams.gapi||"1"==urlParams.embed&&"1"==urlParams.gapi)&&m... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
c)+"px",B.style.top=Math.max(0,e+70)+"px",mxUtils.setPrefixedStyle(B.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(B.style,"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(B.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=I.substring(I.length-3,I.length)&&"!"!=I.charAt(I.length-... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxEvent.isAltDown(K.getEvent())?!1:null!=this.currentState&&K.getState()==this.currentState&&2E3<F||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&R.apply(this,arguments)};var S=this.isToggleEvent;this.isToggleEvent=function(K){return S.apply(this,arguments)||!mxClient.I... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
W,(J.y*L+O.y)*W,X*W,L*W));for(ha=1;ha<J.height;ha++)U.push(new mxRectangle((J.x*X+O.x)*W,((J.y+ha)*L+O.y)*W,X*W,L*W));K=U.concat(K)}return K};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(K,U){return null==K.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.gr... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(l,n){var z=d.getCurrentFile();null==z||z.getMode()!=App.MODE_GOOGLE&&z.getMode()!=App.MODE_GITHUB||!/(\.png)$/i.test(z.getTitle())||this.addMenuItems(l,["liveImage","-"],n);this.addMenuItems(l,["embedImage","embedSvg","-","embedHtml"],n);navigator.standalone||d.isOffline()||this.addMenuItems(l,["embedIframe"],... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.timeout),C=mxUtils.bind(this,function(){window.clearTimeout(x);t&&q.apply(this,arguments)}),I=mxUtils.bind(this,function(){window.clearTimeout(x);t&&p.apply(this,arguments)});k=k||{};k.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:C,error:I});c=JSON.stringify({event:"remote... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
p?4E3:3E4);B=!0}return B};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=funct... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
A.readAsText(E)}else this.doImportVisio(E,e,C,q)}catch(N){C(N)}else try{""==z.responseType||"text"==z.responseType?C({message:z.responseText}):(A=new FileReader,A.onload=function(){try{C({message:JSON.parse(A.result).Message})}catch(N){C(N)}},A.readAsText(z.response))}catch(N){C({})}});z.send(B)}else if(x.clear())try{t... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.diagramContainer.scrollLeft+=c.x-e.x;this.diagramContainer.scrollTop+=c.x-e.x};EditorUi.prototype.setDarkMode=function(c){this.doSetDarkMode(c,mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("darkModeChanged"))}),mxUtils.bind(this,function(e){null!=window.console&&console.error(e);this.editor.setStat... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
else if("svg"==k)c.hideDialog(),c.saveData(e,"svg",mxUtils.getXml(I.getSvg(q,p,t)),"image/svg+xml");else{var B=c.getFileData(!0,null,null,null,null,!0),T=I.getGraphBounds(),l=Math.floor(T.width*p/I.view.scale),n=Math.floor(T.height*p/I.view.scale);if(B.length<=MAX_REQUEST_SIZE&&l*n<MAX_AREA)if(c.hideDialog(),"png"!=k&&... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"transform-origin",null);0==p&&q()}),300)}),10)};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var K=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var c=this.formatWindow;return null!=c?c.window.isVisible():K.apply(this,arguments)};var M=Ed... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
preview:aa.getAttribute("preview"),clibs:ha,tags:aa.getAttribute("tags")};ja.push(ha);null!=ma&&(ja=va[oa],null==ja&&(ja={},va[oa]=ja),oa=ja[ma],null==oa&&(oa=[],ja[ma]=oa),oa.push(ha))}aa=aa.nextSibling}L.stop();l()}})};z.appendChild(qa);z.appendChild(wa);z.appendChild(ca);var Ua=!1,ia=G;/^https?:\/\//.test(ia)&&!b.ed... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Editor.prototype.addFontCss=function(g,y){y=null!=y?y:this.absoluteCssFonts(this.fontCss);if(null!=y){var H=g.getElementsByTagName("defs"),O=g.ownerDocument;0==H.length?(H=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"defs"):O.createElement("defs"),null!=g.firstChild?g.insertBefore(H,g.firstChild):g.app... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
EditorUi.prototype.isResampleImageSize=function(c,e){e=null!=e?e:this.resampleThreshold;return c>e};EditorUi.prototype.resizeImage=function(c,e,k,q,p,t,x){p=null!=p?p:this.maxImageSize;var C=Math.max(1,c.width),I=Math.max(1,c.height);if(q&&this.isResampleImageSize(null!=x?x:e.length,t))try{var B=Math.max(C/p,I/p);if(1<... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Graph.prototype.createViewState=function(b){var f=b.getAttribute("page"),m=parseFloat(b.getAttribute("pageScale")),d=parseFloat(b.getAttribute("pageWidth")),u=parseFloat(b.getAttribute("pageHeight")),v=b.getAttribute("background"),D=this.parseBackgroundImage(b.getAttribute("backgroundImage")),F=b.getAttribute("extFonts... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(){d.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(E){d.handleError(E)}})}]];if(!d.isOfflineApp()&&isLocalStorage&&d.mode!=App.MODE_ATLAS){var z=d.actions.get("plugins");null==z||"sk... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"cells",[E])),b.fireEvent(new mxEventObject("freehandInserted","cell",E))}finally{b.model.endUpdate()}q&&b.setSelectionCells([E])}}for(E=0;E<u.length;E++)u[E].parentNode.removeChild(u[E]);d=null;u=[];D=[]}x(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(z,E){z=E.getProperty("eventName");E=E.getP... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxUtils.bind(this,function(P){this.spinner.stop();y(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(P))})))}else z=n+".svg",g=this.getFileData(!1,!0,null,mxUtils.bind(this,function(P){this.spinner.stop();y(P)}),q)}}catch(P){this.handleError(P)}};EditorUi.prototype.createDownloadRequest=function(c,e,k,q,p... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
[E],"{1} ago"));z.setAttribute("title",n.toLocaleDateString()+" "+n.toLocaleTimeString())}function M(n){var z=document.createElement("img");z.className="geCommentBusyImg";z.src=IMAGE_PATH+"/spin.gif";n.appendChild(z);n.busyImg=z}function G(n){n.style.border="1px solid red";n.removeChild(n.busyImg)}function S(n){n.style... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
c;this.editor.updateGraphComponents();this.editor.graph.refresh();this.editor.graph.defaultMathEnabled=c;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(c){return this.editor.graph.mathEnabled};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP|... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(){var c=document.createElement("div");c.className="geButtonContainer";c.style.overflow="1"==urlParams.embed?"hidden":"";return c};EditorUi.prototype.openLink=function(c,e,k){return this.editor.graph.openLink(c,e,k)};EditorUi.prototype.showSplash=function(c){};EditorUi.prototype.getLocalData=function(c,e){e(loc... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"geBtn gePrimaryBtn";var g=document.createElement("img");g.setAttribute("src",Sidebar.prototype.searchImage);g.setAttribute("title",mxResources.get("preview"));g.className="geActiveButton";g.style.position="absolute";g.style.cursor="default";g.style.padding="8px";g.style.right="0px";g.style.top="0px";var y=!1,H=null,O=... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"center";m=mxUtils.button(mxResources.get("cancel"),function(){b.spinner.stop();b.hideDialog()});m.className="geBtn";b.editor.cancelFirst&&F.appendChild(m);ImageDialog.filePicked=function(x){x.action==google.picker.Action.PICKED&&null!=x.docs[0].thumbnails&&(x=x.docs[0].thumbnails[x.docs[0].thumbnails.length-1],null!=x... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxUtils.bind(this,function(fa){this.cachedFonts[X]=fa;O--;P()}),mxUtils.bind(this,function(fa){O--;P()}),!0,null,"data:"+Y+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(H[g].substring(0,V)),R)}P()}else y(g)};Editor.prototype.loadFonts=function(g){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(thi... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
parseInt(ea.value))))}function O(Ta){function Ia(ya,Ja,Ma,ra){var Fa=ya.useCssTransforms,Ka=ya.currentTranslate,Xa=ya.currentScale,Pa=ya.view.translate,Ra=ya.view.scale;ya.useCssTransforms&&(ya.useCssTransforms=!1,ya.currentTranslate=new mxPoint(0,0),ya.currentScale=1,ya.view.translate=new mxPoint(0,0),ya.view.scale=1)... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
(ja?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");L.querySelector("."+aa).src="/images/"+la+"-sel.svg";L.querySelector("."+oa).src="/images/"+ha+".svg";return!0}function t(ia,aa,la,ma){function oa(ta,La){null==ja?(ta=/^https?:\/\//.test(ta)&&!b.editor.isCorsEnabledForUrl(ta)?PROXY_URL+"?url="+encodeURIComponent(ta... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
a.getPageLayout(a.getBoundingBoxFromGeometry(a.model.getCells(),!0),aa,1),J=a.getDefaultTranslate(W);this.x0=W.x;this.y0=W.y;a.setScrollbarPositions(e.currentPage.viewState,J.x,J.y);if(J.x!=this.translate.x||J.y!=this.translate.y){this.setTranslate(J.x,J.y);return}}W=a.getPagePadding();J=a.getPageSize();this.translate.... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"-rev_"+this.ui.hashValue(F):"")+(null!=p?"-latest_"+p:"")+(null!=k?"-latestRev_"+this.ui.hashValue(k.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+J,action:u,label:"user_"+S+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+f.length+"-size_"+this.g... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
x);ImageDialog.filePicked=function(A){A.action==google.picker.Action.PICKED&&null!=A.docs[0].thumbnails&&(A=A.docs[0].thumbnails[A.docs[0].thumbnails.length-1],null!=A&&(J.value=A.url,x()));J.focus()};F.appendChild(S);F.appendChild(c);mxUtils.br(F);mxUtils.br(F);M?(S.setAttribute("checked","checked"),S.checked=!0):(G.s... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(C){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(C){}}catch(C){this.fileLoadedError=C;if(null!=c)try{c.close()}catch(I){}if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logE... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(c,e,k,q,p){this.openDatabase(mxUtils.bind(this,function(t){try{p=p||"objects";Array.isArray(p)||(p=[p],c=[c],e=[e]);var x=t.transaction(p,"readwrite");x.oncomplete=k;x.onerror=q;for(t=0;t<p.length;t++)x.objectStore(p[t]).put(null!=c&&null!=c[t]?{key:c[t],data:e[t]}:e[t])}catch(C){null!=q&&q(C)}}),q)};EditorUi.... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.newComment=function(c,e){var k=this.getCurrentFile();return null!=k?k.newComment(c,e):new DrawioComment(this,null,c,Da... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
g.baseUrl||H.crossOriginImages&&H.isCorsEnabledForUrl(O)?"chrome-extension://"==O.substring(0,19)||mxClient.IS_CHROMEAPP||(O=y.apply(this,arguments)):O=PROXY_URL+"?url="+encodeURIComponent(O)}return O};return g};Editor.createSvgDataUri=function(g){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(g)))... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(z){G=z};this.setAutoScroll=function(z){S=z};this.setOpenFill=function(z){J=z};this.setStopClickEnabled=function(z){k=z};this.setSelectInserted=function(z){q=z};this.setSmoothing=function(z){m=z};this.setPerfectFreehandMode=function(z){t=z};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=funct... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(C){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(C){}}catch(C){this.fileLoadedError=C;if(null!=c)try{c.close()}catch(I){}if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logE... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
m.setCellStyles(mxConstants.STYLE_ROTATION,Number(p.value),[f[x]])}}finally{m.getModel().endUpdate()}});t.className="geBtn gePrimaryBtn";mxEvent.addListener(u,"keypress",function(x){13==x.keyCode&&t.click()});v=document.createElement("div");v.style.marginTop="20px";v.style.textAlign="right";b.editor.cancelFirst?(v.appe... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(A){if(e.isEnabled()&&1==e.getSelectionCount()){var N=e.getSelectionCell(),Q=mxEvent.isControlDown(A)?null:e.getIncomingTreeEdges(N);A=[];if(null!=Q&&0<Q.length&&(Q=e.getOutgoingTreeEdges(e.model.getTerminal(Q[0],!0)),null!=Q))for(var L=0;L<Q.length;L++)A.push(e.model.getTerminal(Q[L],!1));0==A.length&&(A=e.mod... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
""),mxUtils.bind(this,function(e){window.clearTimeout(c);J&&(200<=e.getStatus()&&299>=e.getStatus()?null!=m&&m():d({message:mxResources.get("realtimeCollaboration")+(0!=e.getStatus()?": "+e.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"diff",M,S.length,"bytes","from",F,"to",K,"etag",this.file.... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
e.getCurrentCellStyle(A).treeMoving);return N}function v(A){var N=!1;null!=A&&(A=k.getParent(A),N=e.view.getState(A),N="tree"==(null!=N?N.style:e.getCellStyle(A)).containerType);return N}function D(A){var N=!1;null!=A&&(A=k.getParent(A),N=e.view.getState(A),e.view.getState(A),N=null!=(null!=N?N.style:e.getCellStyle(A))... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
O(!1)}),da.className="geBtn",y.appendChild(da));da=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){g.hideDialog();O(!0)});da.className="geBtn gePrimaryBtn";y.appendChild(da);g.editor.cancelFirst||y.appendChild(R);V.appendChild(y);this.container=V};var Q=ChangePageSetup.prototype.execu... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
d.container.scrollTop=0,this.chromelessResize()));f||d.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",u))}}catch(D){this.handleError(D)}};EditorUi.prototype.selectNextPage=function(b){var f=this.currentPage;null!=f&&null!=this.pages&&(f=mxUtils.indexOf(this.pages,f),b?this.selectPage(this.pages[mxUtils.mod(f+1,t... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
App.prototype.fileCreated=function(b,f,m,d,u,v){var D=window.location.pathname;null!=f&&0<f.length&&(D+="?libs="+f);null!=u&&0<u.length&&(D+="?clibs="+u);D=this.getUrl(D);b.getMode()!=App.MODE_DEVICE&&(D+="#"+b.getHash());if(this.spinner.spin(document.body,mxResources.get("inserting"))){var F=b.getData();F=0<F.length?t... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,e){c=new TextareaDialog(this,c,e,null,null,mxResources.get("close"));this.showDialog(c.container,620,460,!0,!0,null,null,null,null,!0);c.init();document.execCommand("selectall",!1,null)};E... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
R[X[Y]]&&Z++;Z=Z==V}Z&&(1!=O||this.isCellVisible(y[W]))&&P.push(y[W])}}return P};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(g){for(var y=null,H=[],O=0;O<g.length;O++){var P=this.getTagsForCell(g[O]);H... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
A):l.y+l.height>A+z&&(l.height=A+z-l.y,l.y=Math.min(l.y,A+z));var N=(l.x-E)/n*100;n=100-(l.x+l.width-E)/n*100;E=(l.y-A)/z*100;l=100-(l.y+l.height-A)/z*100;return"inset("+mxUtils.format(E)+"% "+mxUtils.format(n)+"% "+mxUtils.format(l)+"% "+mxUtils.format(N)+"%"+(B?" round "+J+"%":T?" round 50%":"")+")"}function v(B){nul... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
null,H),0<O.length&&(g=mxUtils.parseXml(O),g=g.documentElement))))}if(null!=g&&"svg"==g.nodeName)if(O=g.getAttribute("content"),null!=O&&"<"!=O.charAt(0)&&"%"!=O.charAt(0)&&(O=unescape(window.atob?atob(O):Base64.decode(cont,O))),null!=O&&"%"==O.charAt(0)&&(O=decodeURIComponent(O)),null!=O&&0<O.length)g=mxUtils.parseXml... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
null;x=mxUtils.button("",mxUtils.bind(this,function(C){this.pickColor(t||"none",function(I){t=I;k()});mxEvent.consume(C)}));k();x.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";x.style.marginLeft="4px";x.style.height="22px";x.style.width="22px";x.style.position="relative";x.style.top=mxClient.IS_IE||mxClient.IS_I... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
na=la;ea=ma;fa=ja;da=aa;za=oa;Ca=sa;Ba=ha;da.style.backgroundColor=F;da.style.border=K}function T(aa,la,ma,oa,ha,ja,sa,ta,La,Ga,ya){function Ja(Na,Ya){null==Fa?(Ka=Na,Ka=/^https?:\/\//.test(Ka)&&!b.editor.isCorsEnabledForUrl(Ka)?PROXY_URL+"?url="+encodeURIComponent(Ka):TEMPLATE_PATH+"/"+Ka,mxUtils.get(Ka,mxUtils.bind(t... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
(this.file.stats.cacheFail++,this.reload(f,m,d))}catch(t){null!=m&&m(t)}}else null!=m&&m()}),m)}else null!=m&&m()});window.setTimeout(M,this.cacheReadyDelay)}}else null!=m&&m()}};DrawioFileSync.prototype.reload=function(b,f,m,d){this.file.updateFile(mxUtils.bind(this,function(){this.lastModified=this.file.getLastModifi... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
this.editor.graph.mathEnabled&&this.editor.addMathCss(N);var U=mxUtils.bind(this,function(g){t?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(g,L,this.thumbImageCache)):L(g)});n?this.embedFonts(N,U):(this.editor.addFontCss(N),U(N))}catch(g){this.handleError(g)}};EditorUi.prototype.addR... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
t.setAttribute("disabled","disabled")}));mxUtils.br(c);return{getLink:function(){return k.checked?"blank"===t.value?"_blank":p:null},getEditInput:function(){return k},getEditSelect:function(){return t}}};EditorUi.prototype.addLinkSection=function(c,e){function k(){var C=document.createElement("div");C.style.width="100%... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxUtils.bind(this,function(){k(Error(mxResources.get("timeout")+" "+p.getAttribute("href")))}))}};EditorUi.prototype.setPagesVisible=function(c){Editor.pagesVisible!=c&&(Editor.pagesVisible=c,mxSettings.settings.pagesVisible=c,mxSettings.save(),this.fireEvent(new mxEventObject("pagesVisibleChanged")))};EditorUi.prototy... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
c||null==c};EditorUi.prototype.doSetCurrentTheme=function(c,e,k){function q(I){return"simple"==I||0==e&&"sketch"==I}e=null!=e?e:150;var p=Editor.currentTheme,t=q(p)&&this.isDefaultTheme(c)||this.isDefaultTheme(p)&&q(c),x=t&&"sketch"!=c&&"sketch"!=p;if(t&&!this.themeSwitching){Editor.currentTheme=c;this.themeSwitching=!... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"hidden";na.style.bottom="0px";na.style.height="42px";na.style.right="10px";na.style.left="10px";R.isEnabled()&&(na.appendChild(Y),na.appendChild(ea),X.appendChild(na));return{div:X,refresh:fa}};Graph.prototype.getCustomFonts=function(){var g=this.extFonts;g=null!=g?g.slice():[];for(var y in Graph.customFontElements){v... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
ma.join(" ")}null!=ia?(O=ia,O.className+=" "+aa,P=la,ka.className="geTempDlgCreateBtn"):(P=O=null,ka.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function C(ia,aa){if(null!=P){var la=function(sa){ja.isExternal?K(ja,function(ta){ma(ta,sa)},oa):ja.url?mxUtils.get(TEMPLATE_PATH+"/"+ja.url,mxUtils.bind(this,functio... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
null!=c)m||b.hideDialog(),c(za,Ba,N.value);else if(d)m||b.hideDialog(),d(na,N.value,Ca,ea);else{var aa=N.value;null!=aa&&0<aa.length&&b.pickFolder(b.mode,function(la){b.createFile(aa,na,null!=ea&&0<ea.length?ea:null,null,function(){b.hideDialog()},null,la,null,null!=fa&&0<fa.length?fa:null)},b.mode!=App.MODE_GOOGLE||nu... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
var CreateDialog=function(b,f,m,d,u,v,D,F,K,M,G,S,J,c,e,k,q){function p(n,z,E,A){function N(){mxEvent.addListener(Q,"click",function(){var H=E;if(D){var O=C.value,P=O.lastIndexOf(".");if(0>f.lastIndexOf(".")&&0>P){H=null!=H?H:l.value;var V="";H==App.MODE_GOOGLE?V=b.drive.extension:H==App.MODE_GITHUB?V=b.gitHub.extensio... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(g,y){for(var H=0;H<y.length;H++){var O=y[H],P;for(P in O)this.updateCustomLinkAction(g,O[P],"cells"),this.updateCustomLinkAction(g,O[P],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(g,y,H){if(null!=y&&null!=y[H]){for(var O=[],P=0;P<y[H].length;P++)if("*"==y[H][P])O.push(y[H][P]);else{var V=... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Na=g.getCurrentFile();null!=Na&&(Ja.title=Na.getTitle());var hb=Ja.writeHead;Ja.writeHead=function(Za){hb.apply(this,arguments);mxClient.IS_GC&&(Za.writeln('<style type="text/css">'),Za.writeln("@media print {"),Za.writeln(".MathJax svg { shape-rendering: crispEdges; }"),Za.writeln("}"),Za.writeln("</style>"));null!=g.... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
EditorUi.prototype.updateDiagram=function(c){function e(U){var g=new mxCellOverlay(U.image||p.warningImage,U.tooltip,U.align,U.valign,U.offset);g.addListener(mxEvent.CLICK,function(y,H){q.alert(U.tooltip)});return g}var k=null,q=this;if(null!=c&&0<c.length&&(k=mxUtils.parseXml(c),c=null!=k?k.documentElement:null,null!=... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxUtils.setTextContent(k,JSON.stringify(c,null,2));e.appendChild(k);return mxUtils.getXml(e,"\n")};EditorUi.prototype.closeLibrary=function(c){null!=c&&(this.removeLibrarySidebar(c.getHash()),c.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(c.getHash()),".scratchpad"==c.title&&(this.scratchpad=null))};Editor... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
for(var e=[],k=2;k<c.length;k++){var q=mxUtils.trim(c[k]);"["!=q&&"]"!=q&&"%%"!=q.substring(0,2)&&"##"!=q.substring(0,2)&&(q=c[k].replace(/[-|>]/g," "),""!=mxUtils.trim(q)&&" "==q.charAt(0)&&e.push(q))}return"mindmap\nroot(("+mxUtils.trim(c[1])+"))\n"+e.join("\n")};EditorUi.prototype.extractMermaidDeclaration=function(... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
y,H,O){for(var P=0;P<O;P++)g=Editor.crcTable[(g^y.charCodeAt(H+P))&255]^g>>>8;return g};Editor.crc32=function(g){for(var y=-1,H=0;H<g.length;H++)y=y>>>8^Editor.crcTable[(y^g.charCodeAt(H))&255];return(y^-1)>>>0};Editor.writeGraphModelToPng=function(g,y,H,O,P){function V(Y,ea){var fa=X;X+=ea;return Y.substring(fa,X)}fun... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
l);this.handleError(c,e,k,q,p)}),T,mxResources.get("changeUser"),mxUtils.bind(this,function(){function z(){Q.innerText="";for(var L=0;L<E.length;L++){var U=document.createElement("option");mxUtils.write(U,E[L].displayName);U.value=L;Q.appendChild(U);U=document.createElement("option");U.innerHTML=" ";mx... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
c=x)}this.spinner.stop();this.openLocalFile(c,e,q,p,null!=p?k:null)}}};EditorUi.prototype.openFiles=function(c,e){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var k=0;k<c.length;k++)mxUtils.bind(this,function(q){var p=new FileReader;p.onload=mxUtils.bind(this,function(t){try{this.openFileHandle(t.... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
R};var P=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(V,R,W,X,Z,Y){null!=V.handJiggle&&V.handJiggle.constructor==g?(V.handJiggle.passThrough=!0,P.apply(this,arguments),V.handJiggle.passThrough=!1):P.apply(this,arguments)}})();Editor.fastCompress=function(g){return null==g||0==g.length|... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"4px");null!=Y&&na.setAttribute("title",Y);null!=ea&&(W=function(){ea.isEnabled()?(na.removeAttribute("disabled"),na.style.cursor="pointer"):(na.setAttribute("disabled","disabled"),na.style.cursor="default")},ea.addListener("stateChanged",W),x.addListener("enabledChanged",W),W());return na}function e(W,X,Z){Z=document.... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
0;ja<ta.length;ja++)oa=ta[ja],0==ha==(null==la[oa.url])&&(Ga[oa.url]=!0,La.push(oa));la=Ga;ha++}0==La.length?za.innerText=mxResources.get("noResultsFor",[ia]):B(La,!0)}}function A(ia){if(Y!=ia||R!=ea)q(),Ba.scrollTop=0,da.innerText="",za.innerText=mxResources.get("searchResults")+' "'+ia+'"',Ua=null,fa?E(ia):F&&(ia?(Qa... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(M){return this.isTreeEdge(M)}))};Graph.prototype.getIncomingTreeEdges=function(d,u){return this.getTreeEdges(d,u,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(d,u){return this.getTreeEdges(d,u,!1,!0,!1)};var f=EditorUi.prototype.init;EditorUi.prototype.init=function(){f.apply(this,arguments);this.ed... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
arguments);M.style.backgroundColor=""};G.dblClick=function(){};var O=G.getSelectionModel().changeSelection;G.getSelectionModel().changeSelection=function(){O.call(this,[c],[c])}};K.onerror=function(){K.onload=null;K.src=Editor.errorImage};K.setAttribute("src",f);K.style.maxWidth="300px";K.style.maxHeight="300px";F.appe... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
I.offsetTop);this.showShapePicker(Math.max(this.diagramContainer.scrollLeft+Math.max(24,E.x)),this.diagramContainer.scrollTop+E.y,null,null,null,null,mxUtils.bind(this,function(A){return e.getCenterInsertPoint(e.getBoundingBoxFromGeometry(A,!0))}),"simple"==c,!1)}mxEvent.consume(z)}));x.style.backgroundSize="24px";"sim... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(k,q,p){mxCellRenderer.prototype.installCellOverlayListeners.apply(this,arguments);mxEvent.addListener(p.node,mxClient.IS_POINTER?"pointerdown":"mousedown",function(t){q.fireEvent(new mxEventObject("pointerdown","event",t,"state",k))});!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&mxEvent.addListener(p.node,"touchst... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"ellipsis";A.setAttribute("title",E.title+" ("+E.id+")");var N=document.createElement("input");N.setAttribute("type","checkbox");N.checked=b.sidebar.isEntryVisible(E.id);N.defaultChecked=N.checked;A.appendChild(N);mxUtils.write(A," "+E.title);G.appendChild(A);var Q=function(L){if(null==L||"INPUT"!=mxEvent.getSource(L).... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
StorageFile.insertFile=function(b,f,m,d,u){var v=mxUtils.bind(this,function(D){var F=function(){var K=new StorageFile(b,m,f);K.saveFile(f,!1,function(){d(K)},u)};D?b.confirm(mxResources.get("replaceIt",[f]),F,u):F()});StorageFile.getFileContent(b,f,function(D){v(null!=D)},function(){v(!1)})};StorageFile.getFileContent=... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
6)this.curveTo(fa[na],fa[na+1],fa[na+2],fa[na+3],fa[na+4],fa[na+5]);this.lastX=Y;this.lastY=ea}};g.prototype.rect=function(V,R,W,X){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(V,R,W,X,this.getStyle(!0,!0)))};g.prototype.ellipse=function(V,R,W,... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",x,null,null,null,t)},null,null,null,t)},null,null... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
StorageFile.listFiles=function(b,f,m,d){b.getDatabaseItems(function(u){var v=[];if(null!=u)for(var D=0;D<u.length;D++)"."==u[D].title.charAt(0)||null!=f&&u[D].type!=f||v.push(u[D]);m(v)},function(){null==b.database?m(StorageFile.listLocalStorageFiles(f)):null!=d&&d()},"filesInfo")};StorageFile.deleteFile=function(b,f,m... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
delete F[S];return D};EditorUi.prototype.patchViewState=function(b,f){if(null!=b.viewState&&null!=f){b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var m in f)try{this.patchViewStateProperty(b,f,m)}catch(d){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};EditorUi.prototyp... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
function(z){G=z};this.setAutoScroll=function(z){S=z};this.setOpenFill=function(z){J=z};this.setStopClickEnabled=function(z){k=z};this.setSelectInserted=function(z){q=z};this.setSmoothing=function(z){m=z};this.setPerfectFreehandMode=function(z){t=z};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=funct... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
var StorageDialog=function(b,f,m){function d(S,J,c,e,k,q){function p(){mxEvent.addListener(t,"click",null!=q?q:function(){c==App.MODE_GOOGLE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(c,!0);f()})):c==App.MODE_ONEDRIVE&&b.spinn... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var e=c.msgMarkers,k=this.remoteInvokeCallbacks[e.callbackId];if(null==k)throw Error("No callback for "+(null!=e?e.callbackId:"null"));c.error?k.error&&k.error(c.error.errResp):k.callback&&k.callback.apply(this,c.resp);this.remote... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
mxUtils.getTextContent(Y[Z]);V=b.stringToCells(Graph.decompress(y));var ea=b.editor.graph.getBoundingBoxFromGeometry(V);F(null,null,0,0,0,0,{xml:y,w:ea.width,h:ea.height})}E=!0}}catch(fa){null!=window.console&&console.log("Error in library dialog: "+fa)}E||(b.spinner.stop(),b.handleError({message:mxResources.get("error... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
c.editor.loadFonts()};var D=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,e=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=e&&c<e?this.isFo... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
5)&&"application/pdf"!==q.type||"image/svg"===q.type.substring(0,9)?p.readAsText(q):p.readAsDataURL(q)})(c[k])};EditorUi.prototype.openLocalFile=function(c,e,k,q,p){var t=this.getCurrentFile(),x=mxUtils.bind(this,function(){window.openFile=null;if(null==e&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var C=mxUti... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},X,Z)}function ea(){F(na,da,function(za){Y()},!0)}var fa=L().pdiv,na=b.newComment(V,b.getCurrentUser());na.pCommentId=n.id;null==n.replies&&(n.replies=[]);var da=J(na,n.replies,fa,A+1);R?ea():Y()}if(N||!n.isResolved){x.style.display="none";var g=do... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
B=new mxAsyncCanvas(this.thumbImageCache);I.images=this.thumbImageCache.images;var T=new mxImageExport;T.drawShape=function(l,n){l.shape instanceof mxShape&&l.shape.checkBounds()&&(n.save(),n.translate(.5,.5),l.shape.paint(n),n.translate(-.5,-.5),n.restore())};T.drawText=function(l,n){};T.drawState(D.getView().getState... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
if(null!=t.hoverIcons){var z=t.hoverIcons.update;t.hoverIcons.update=function(){x.freehand.isDrawing()||z.apply(this,arguments)}}if(null!=x.freehand){var E=x.freehand.createStyle;x.freehand.createStyle=function(W){return E.apply(this,arguments)+"sketch=0;"}}t.editor.addListener("statusChanged",mxUtils.bind(this,functio... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
v.x,v.y),b.editor.graph.fireEvent(new mxEventObject("cellsInserted","cells",n))}finally{b.editor.graph.getModel().endUpdate()}b.editor.graph.setSelectionCells(n);b.editor.graph.scrollCellToVisible(b.editor.graph.getSelectionCell());t.destroy();q.parentNode.removeChild(q)}}}function u(){return"list"==F.value?"Person\n-n... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
N.substring(0,11)?d.loadImage(N,mxUtils.bind(this,function(O){var P=!0,V=mxUtils.bind(this,function(){d.resizeImage(O,N,mxUtils.bind(this,function(R,W,X){R=P?Math.min(1,Math.min(d.maxImageSize/W,d.maxImageSize/X)):1;d.importFile(N,Q,y,H,Math.round(W*R),Math.round(X*R),L,function(Z){d.spinner.stop();u.setSelectionCells(... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
"geCommentActionLnk";mxUtils.write(Z,V);X.appendChild(Z);mxEvent.addListener(Z,"click",function(Y){R(Y,n);Y.preventDefault();mxEvent.consume(Y)});P.appendChild(X);W&&(X.style.display="none")}function L(){function V(X){R.push(W);if(null!=X.replies)for(var Z=0;Z<X.replies.length;Z++)W=W.nextSibling,V(X.replies[Z])}var R=... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
(q<<5)-q+this.hashValue(c.childNodes[p],e,k)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);e=0;null!=k&&(k.byteCount+=c.length);for(p=0;p<c.length;p++)e=(e<<5)-e+c.charCodeAt(p)<<0;q^=e}return q};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototy... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
K;this.okButton=u;this.container=J},TemplatesDialog=function(b,f,m,d,u,v,D,F,K,M,G,S,J,c,e){function k(ia){wa.innerText=ia;wa.style.display="block";setTimeout(function(){wa.style.display="none"},4E3)}function q(){null!=y&&(y.style.fontWeight="normal",y.style.textDecoration="none",H=y,y=null)}function p(ia,aa,la,ma,oa,h... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
" "+Y.getStatus()})},X,this.timeout,function(){P&&null!=H&&H({code:App.ERROR_TIMEOUT,retry:Z})},W)});Z()}catch(Y){null!=H&&H(Y)}};Editor.prototype.absoluteCssFonts=function(g){var y=null;if(null!=g){var H=g.split("url(");if(0<H.length){y=[H[0]];g=window.location.pathname;var O=null!=g?g.lastIndexOf("/"):-1;0<=O&&(g=g.s... | 1 | JavaScript | CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | https://cwe.mitre.org/data/definitions/79.html | safe |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.