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