Language: JavaScript
Label: safe
CWE: CWE-78 \u2014 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.

Code:
this.isOffline(!0)?window.setTimeout(B,0):(this.loadingMermaid=!0,"1"==urlParams.dev?("1"==urlParams.mermaidToDrawioTest&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(G){this.importXml(G,null,null,null,null,null,!0)})),mxscript("js/mermaid/mermaid.min.js",B,null,null,null,x)):mxscript("js/extensions.min.js",B,null,null,null,x))};EditorUi.prototype.generatePlantUmlImage=function(d,g,n,q){function t(G,I,F){c1=G>>2;c2=(G&3)<<4|I>>4;c3=(I&15)<<2|F>>6;c4=F&63;r="";r+=x(c1&63);r+=x(c2&63);r+=
x(c3&63);return r+=x(c4&63)}function x(G){if(10>G)return String.fromCharCode(48+G);G-=10;if(26>G)return String.fromCharCode(65+G);G-=26;if(26>G)return String.fromCharCode(97+G);G-=26;return 0==G?"-":1==G?"_":"?"}var B=new XMLHttpRequest;B.open("GET",("txt"==g?PLANT_URL+"/txt/":"png"==g?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(G){r="";for(i=0;i<G.length;i+=3)r=i+2==G.length?r+t(G.charCodeAt(i),G.charCodeAt(i+1),0):i+1==G.length?r+t(G.charCodeAt(i),0,0):r+t(G.charCodeAt(i),G.charCodeAt(i+1),G.charCodeAt(i+