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.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(l){return l.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(l){return Graph.isGoogleFontUrl(l)};Graph.createFontElement=function(l,z){var J=Graph.fontMapping[z];null==J&&Graph.isCssFontUrl(z)?(l=document.createElement("link"),l.setAttribute("rel","stylesheet"),l.setAttribute("type","text/css"),l.setAttribute("charset","UTF-8"),l.setAttribute("href",z)):(null==J&&(J='@font-face {\nfont-family: "'+
l+'";\nsrc: url("'+z+'");\n}'),l=document.createElement("style"),mxUtils.write(l,J));return l};Graph.addFont=function(l,z,J){if(null!=l&&0<l.length&&null!=z&&0<z.length){var O=l.toLowerCase();if("helvetica"!=O&&"arial"!=l&&"sans-serif"!=O){var T=Graph.customFontElements[O];null!=T&&T.url!=z&&(T.elt.parentNode.removeChild(T.elt),T=null);null==T?(T=z,"http:"==z.substring(0,5)&&(T=PROXY_URL+"?url="+encodeURIComponent(z)),T={name:l,url:z,elt:Graph.createFontElement(l,T)},Graph.customFontElements[O]=T,