From 009f4a24bd8743b2cf180b59cb2a2d90ff3f8640 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Wed, 21 Sep 2011 18:09:12 +0200 Subject: [PATCH] Fixes birthday calendar downloading with IE (Closes #1534). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- ChangeLog | 1 + modules/carnet.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f782f94..37fdab5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,7 @@ Bug/Wish: * Core: - #1523: Rename AUTH_MDP to AUTH_PASSWD -JAC + - #1534: Fixes birthday calendar downloading with IE -JAC * Email: - #1529: Stores and uses preferences for sending emails from site -JAC diff --git a/modules/carnet.php b/modules/carnet.php index 8db0fc2..d60d34d 100644 --- a/modules/carnet.php +++ b/modules/carnet.php @@ -396,7 +396,7 @@ class CarnetModule extends PLModule } else { $encoding = 'utf-8'; } - pl_content_headers("text/comma-separated-values;charset=".$encoding); + pl_cached_content_headers('text/comma-separated-values; charset=' . $encoding, 1); } function handler_ical(PlPage $page, PlUser $user) @@ -409,7 +409,7 @@ class CarnetModule extends PLModule $profiles = $filter->iterProfiles(); $page->assign('events', PlIteratorUtils::map($profiles, array($this, 'buildBirthRef'))); - pl_content_headers("text/calendar"); + pl_cached_content_headers('text/calendar', 1); } function handler_vcard($page, $photos = null) -- 2.1.4