From 11587fcbe938c1ef19a6faf51b9f71d7e4d3ccd8 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Fri, 13 Feb 2009 16:28:03 -0500 Subject: [PATCH] Revert "lower case the action string before comparing" This needed to be fixed in Util::getPathInfo() by not trusting PATH_INFO from lighttpd This reverts commit 0f8b561da41ebaab8d699b665a2ed3f396bb34cb. --- kronolith/ajax.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kronolith/ajax.php b/kronolith/ajax.php index e40628e4a..e309dbe6d 100644 --- a/kronolith/ajax.php +++ b/kronolith/ajax.php @@ -52,8 +52,8 @@ ob_start(); $notify = true; $result = false; -switch (strtolower($action)) { -case 'listevents': +switch ($action) { +case 'ListEvents': $dates = Kronolith::listEvents(Util::getFormData('start'), Util::getFormData('end')); if (is_a($dates, 'PEAR_Error')) { $notification->push($dates, 'horde.error'); @@ -69,7 +69,7 @@ case 'listevents': } break; -case 'chunkcontent': +case 'ChunkContent': $chunk = basename(Util::getPost('chunk')); if (!empty($chunk)) { $result = new stdClass; -- 2.11.0