shindig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chab...@apache.org
Subject svn commit: r795967 - /incubator/shindig/trunk/php/src/gadgets/oauth/GadgetOAuthTokenStore.php
Date Mon, 20 Jul 2009 19:30:05 GMT
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;



Mime
View raw message