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:
Graph.prototype.addExtFont=function(b,e,g){if(b&&e){"1"!=urlParams["ext-fonts"]&&(Graph.recentCustomFonts[b.toLowerCase()]={name:b,url:e});var n="extFont_"+b;if(null==document.getElementById(n))if(0==e.indexOf(Editor.GOOGLE_FONTS))mxClient.link("stylesheet",e,null,n);else{document.getElementsByTagName("head");var y=document.createElement("style");y.appendChild(document.createTextNode('@font-face {\n\tfont-family: "'+b+'";\n\tsrc: url("'+e+'");\n}'));y.setAttribute("id",n);document.getElementsByTagName("head")[0].appendChild(y)}if(!g){null==
this.extFonts&&(this.extFonts=[]);g=this.extFonts;n=!0;for(y=0;y<g.length;y++)if(g[y].name==b){n=!1;break}n&&this.extFonts.push({name:b,url:e})}}};