X-Git-Url: https://git-public.kairo.at/?a=blobdiff_plain;f=app%2Fauthsystem.inc.php;fp=app%2Fauthsystem.inc.php;h=17ff7002557bf2ab0efcbe4b31c6a40cd54f42a5;hb=7be13777491767920a76f854c8e8160fe04c4851;hp=39e43f00a2f6945ceda991dc532aa17c90ab1f19;hpb=4e765d998029d80d9fd78ce08671cee3f985438d;p=authserver.git diff --git a/app/authsystem.inc.php b/app/authsystem.inc.php index 39e43f0..17ff700 100644 --- a/app/authsystem.inc.php +++ b/app/authsystem.inc.php @@ -45,6 +45,11 @@ bindtextdomain($textdomain, '../locale'); bind_textdomain_codeset($textdomain, 'utf-8'); textdomain($textdomain); +// Sanitize settings. +$settings['piwik_enabled'] = (@$settings['piwik_enabled']) ? true : false; +$settings['piwik_site_id'] = intval(@$settings['piwik_site_id']); +$settings['piwik_url'] = strlen($settings['piwik_url']) ? $settings['piwik_url'] : '/piwik/'; + /* Creating the DB tables: CREATE TABLE `auth_sessions` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT ,