if (!isConfigEntrySet('css_php')) setConfigEntry('css_php', 'FILE');
// Output CSS files or content or link to css.php ?
-if ((getOutputMode() == '1') || (getConfig('css_php') == 'DIRECT')) {
+if ((getOutputMode() == 1) || (getConfig('css_php') == 'DIRECT')) {
// Load CSS files
$STYLES = merge_array($STYLES, getExtensionCssFiles());
// Default theme first
$newTheme = 'default';
if (isGetRequestElementSet('theme')) $newTheme = getRequestElement('theme');
- if (isPostRequestElementSet('theme')) $newTheme = SQL_ESCAPE(postRequestElement('theme'));
+ if (isPostRequestElementSet('theme')) $newTheme = secureString(postRequestElement('theme'));
outputHtml('?theme=' . $newTheme . '&installing=1', false);
} else {
// Add SVN revision to bypass caching problems