aboutsummaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax/events.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-05-08 08:49:14 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-05-08 08:49:14 +0200
commitcdf5d4e2313266f980c0f2d80b47b28886fba3cf (patch)
tree1cacfe67ba8fb8912a31c936a08991639454613e /apps/calendar/ajax/events.php
parent0ce1cbdd140f1d2bf0e40fec79c4432a87674e0b (diff)
downloadnextcloud-server-cdf5d4e2313266f980c0f2d80b47b28886fba3cf.tar.gz
nextcloud-server-cdf5d4e2313266f980c0f2d80b47b28886fba3cf.zip
fix for previous commit
Diffstat (limited to 'apps/calendar/ajax/events.php')
-rwxr-xr-xapps/calendar/ajax/events.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/calendar/ajax/events.php b/apps/calendar/ajax/events.php
index c3807fe47ed..e41395a429f 100755
--- a/apps/calendar/ajax/events.php
+++ b/apps/calendar/ajax/events.php
@@ -13,7 +13,7 @@ OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('calendar');
$calendar = OC_Calendar_App::getCalendar($_GET['calendar_id'], false, false);
-if($calendar['userid'] != OCP\User::getUser){
+if(is_numeric($calendar['userid']) && $calendar['userid'] != OCP\User::getUser){
OCP\JSON::error();
exit;
}