diff options
author | John Kristensen <John.Kristensen@dpipwe.tas.gov.au> | 2011-10-12 15:23:39 +1100 |
---|---|---|
committer | John Kristensen <John.Kristensen@dpipwe.tas.gov.au> | 2011-10-12 15:23:39 +1100 |
commit | c86d1824fef70766f1f04a7f3ce2c118c411e037 (patch) | |
tree | 7b8ce685f074b5ba66ef52e05cbddbcc20bff725 /apps | |
parent | ef8826ac2d8438870e1bc42bf51cf28221461cb7 (diff) | |
download | nextcloud-server-c86d1824fef70766f1f04a7f3ce2c118c411e037.tar.gz nextcloud-server-c86d1824fef70766f1f04a7f3ce2c118c411e037.zip |
Improve handling of calendar export $_GET params
* a notice would be reported if either of the 'cal' or 'event' $_GET params
where not supplied, which would result in 'Cannot modify header information'
warnings
Diffstat (limited to 'apps')
-rw-r--r-- | apps/calendar/export.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/export.php b/apps/calendar/export.php index b3e5ecd6834..3e93a1ad618 100644 --- a/apps/calendar/export.php +++ b/apps/calendar/export.php @@ -9,8 +9,8 @@ require_once ("../../lib/base.php"); OC_Util::checkLoggedIn(); OC_Util::checkAppEnabled('calendar'); -$cal = $_GET["calid"]; -$event = $_GET["eventid"]; +$cal = isset($_GET["calid"]) ? $_GET["calid"] : NULL; +$event = isset($_GET["eventid"]) ? $_GET["eventid"] : NULL; if(isset($cal)){ $calendar = OC_Calendar_Calendar::findCalendar($cal); if($calendar["userid"] != OC_User::getUser()){ |