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

Code:
function(c,e){mxSettings.setUi(c);(e=this.doSetCurrentTheme(c)||e)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(c){return""==c||"dark"==c||"default"==c||"kennedy"==c||null==c};EditorUi.prototype.doSetCurrentTheme=function(c,e,l){function p(A){return"simple"==A||0==e&&"sketch"==A}e=null!=e?e:150;var n=Editor.currentTheme,t=p(n)&&this.isDefaultTheme(c)||this.isDefaultTheme(n)&&p(c),y=t&&"sketch"!=c&&"sketch"!=n;t&&!this.themeSwitching&&(Editor.currentTheme=