[Pkg-owncloud-commits] [owncloud] 04/11: Check requesttoken

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:09:30 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.0.12
in repository owncloud.

commit 97d0cee75c56e6e907a15590bc910dd092647716
Author: Lukas Reschke <lukas at statuscode.ch>
Date:   Tue Feb 12 11:28:36 2013 +0100

    Check requesttoken
---
 apps/calendar/ajax/settings/settimezone.php       |    1 +
 apps/calendar/ajax/settings/timezonedetection.php |    2 ++
 2 files changed, 3 insertions(+)

diff --git a/apps/calendar/ajax/settings/settimezone.php b/apps/calendar/ajax/settings/settimezone.php
index 6d029a6..06db66d 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 5f03f64..6bd6a5a 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{

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list