You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by ch...@apache.org on 2009/07/20 21:30:05 UTC

svn commit: r795967 - /incubator/shindig/trunk/php/src/gadgets/oauth/GadgetOAuthTokenStore.php

Author: chabotc
Date: Mon Jul 20 19:30:04 2009
New Revision: 795967

URL: http://svn.apache.org/viewvc?rev=795967&view=rev
Log:
SHINDIG-1114 by Eiji Kitamura - Fixes param_location parsing

Modified:
    incubator/shindig/trunk/php/src/gadgets/oauth/GadgetOAuthTokenStore.php

Modified: incubator/shindig/trunk/php/src/gadgets/oauth/GadgetOAuthTokenStore.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/oauth/GadgetOAuthTokenStore.php?rev=795967&r1=795966&r2=795967&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/oauth/GadgetOAuthTokenStore.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/oauth/GadgetOAuthTokenStore.php Mon Jul 20 19:30:04 2009
@@ -157,13 +157,11 @@
     }
     $paramLocation = null;
     switch ($service->getRequestUrl()->location) {
-      case "URL":
-        $paramLocation = OAuthStoreVars::$OAuthParamLocation['URI_QUERY'];
+      case OAuthStoreVars::$OAuthParamLocation['URI_QUERY']:
+      case OAuthStoreVars::$OAuthParamLocation['POST_BODY']:
+      case OAUthStoreVars::$OAuthParamLocation['AUTH_HEADER']:
+        $paramLocation = $service->getRequestUrl()->location;
         break;
-      case "BODY":
-        $paramLocation = OAuthStoreVars::$OAuthParamLocation['POST_BODY'];
-        break;
-      case "HEADER":
       default:
         $paramLocation = OAuthStoreVars::$OAuthParamLocation['AUTH_HEADER'];
         break;