Browse files

better matching for restFUL actions

  • Loading branch information...
1 parent 6622a90 commit 73568d88df897763ee576a7c48b4c413bffd0179 @evantahler committed May 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 API/index.php
View
2 API/index.php
@@ -92,7 +92,7 @@
$path = $parts[0];
foreach ($ACTIONS as $action)
{
- if (strlen($action[3]) > 0 && strtolower($path) == strtolower($action[3]))
+ if (strlen($action[3]) > 0 && strstr($path,$action[3]) !== false)
{
$PARAMS["Action"] = $action[0];
break;

0 comments on commit 73568d8

Please sign in to comment.