From: Michael J. Rubinsky Date: Fri, 13 Feb 2009 21:35:56 +0000 (-0500) Subject: Don't use PATH_INFO directly, use Util::getPathInfo() X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9c4deb77c857ed49e5e3cd2082dd094da24770e5;p=horde.git Don't use PATH_INFO directly, use Util::getPathInfo() --- 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);