diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-02-12 14:28:36 +0400 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-02-12 14:28:36 +0400 |
commit | 97d0cee75c56e6e907a15590bc910dd092647716 (patch) | |
tree | 5452345ce3d5e1df19839d9192407fdee0c14b11 | |
parent | 1fbb89a661abfb1ebbafee5fb8d72bd2fcde73a1 (diff) |
Check requesttoken
-rw-r--r-- | apps/calendar/ajax/settings/settimezone.php | 1 | ||||
-rw-r--r-- | apps/calendar/ajax/settings/timezonedetection.php | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/apps/calendar/ajax/settings/settimezone.php b/apps/calendar/ajax/settings/settimezone.php index 6d029a6643a..06db66d578e 100644 --- a/apps/calendar/ajax/settings/settimezone.php +++ b/apps/calendar/ajax/settings/settimezone.php @@ -14,6 +14,7 @@ $l=OC_L10N::get('calendar'); // Check if we are a user OCP\JSON::checkLoggedIn(); OCP\JSON::checkAppEnabled('calendar'); +OCP\JSON::callCheck(); // Get data if( isset( $_POST['timezone'] ) ){ diff --git a/apps/calendar/ajax/settings/timezonedetection.php b/apps/calendar/ajax/settings/timezonedetection.php index 5f03f647b3a..6bd6a5a3cd7 100644 --- a/apps/calendar/ajax/settings/timezonedetection.php +++ b/apps/calendar/ajax/settings/timezonedetection.php @@ -8,6 +8,8 @@ OCP\JSON::checkLoggedIn(); OCP\JSON::checkAppEnabled('calendar'); +OCP\JSON::callCheck(); + if(array_key_exists('timezonedetection', $_POST) && $_POST['timezonedetection'] == 'on'){ OCP\Config::setUserValue(OCP\USER::getUser(), 'calendar', 'timezonedetection', 'true'); }else{ |