Revert "lower case the action string before comparing"
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 13 Feb 2009 21:28:03 +0000 (16:28 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 13 Feb 2009 21:28:03 +0000 (16:28 -0500)
This needed to be fixed in Util::getPathInfo() by not trusting
PATH_INFO from lighttpd

This reverts commit 0f8b561da41ebaab8d699b665a2ed3f396bb34cb.

kronolith/ajax.php

index e40628e..e309dbe 100644 (file)
@@ -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;