From 9c4deb77c857ed49e5e3cd2082dd094da24770e5 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Fri, 13 Feb 2009 16:35:56 -0500 Subject: [PATCH] Don't use PATH_INFO directly, use Util::getPathInfo() --- kronolith/fb.php | 4 ++-- kronolith/ics.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kronolith/fb.php b/kronolith/fb.php index 55a48db9d..c8ac772a8 100644 --- a/kronolith/fb.php +++ b/kronolith/fb.php @@ -24,8 +24,8 @@ if (!empty($cal)) { if (is_array($cal)) { $cal = implode('|', $cal); } -} elseif (!empty($_SERVER['PATH_INFO'])) { - $user = basename($_SERVER['PATH_INFO']); +} elseif ($pathInfo = Util::getPathInfo()) { + $user = basename($pathInfo); } $cache = Horde_Cache::factory($conf['cache']['driver'], Horde::getDriverConfig('cache', $conf['cache']['driver'])); diff --git a/kronolith/ics.php b/kronolith/ics.php index 180f4c3bd..6ccdfa7c5 100644 --- a/kronolith/ics.php +++ b/kronolith/ics.php @@ -19,8 +19,8 @@ NLS::setCharset('UTF-8'); // Determine which calendar to export. $calendar = Util::getFormData('c'); -if (empty($calendar) && !empty($_SERVER['PATH_INFO'])) { - $calendar = basename($_SERVER['PATH_INFO']); +if (empty($calendar) && $pathInfo = Util::getPathInfo()) { + $calendar = basename($pathInfo); } $share = $kronolith_shares->getShare($calendar); -- 2.11.0