[Pkg-owncloud-commits] [owncloud] 36/75: Improve handling of calendar export $_GET params
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:08:35 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v3.0.1
in repository owncloud.
commit a6ac5a2ec1aa7c2c9ccfdc5b413b89533a2fe288
Author: John Kristensen <John.Kristensen at dpipwe.tas.gov.au>
Date: Wed Oct 12 15:23:39 2011 +1100
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
---
apps/calendar/export.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/calendar/export.php b/apps/calendar/export.php
index b3e5ecd..3e93a1a 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()){
--
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