You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by li...@apache.org on 2010/08/10 10:56:43 UTC
svn commit: r983894 - /shindig/trunk/php/src/gadgets/GadgetContext.php
Author: lindner
Date: Tue Aug 10 08:56:43 2010
New Revision: 983894
URL: http://svn.apache.org/viewvc?rev=983894&view=rev
Log:
SHINDIG-1404 | Patch from Bastian Hofmann | Additional double decoding of Security Token
Modified:
shindig/trunk/php/src/gadgets/GadgetContext.php
Modified: shindig/trunk/php/src/gadgets/GadgetContext.php
URL: http://svn.apache.org/viewvc/shindig/trunk/php/src/gadgets/GadgetContext.php?rev=983894&r1=983893&r2=983894&view=diff
==============================================================================
--- shindig/trunk/php/src/gadgets/GadgetContext.php (original)
+++ shindig/trunk/php/src/gadgets/GadgetContext.php Tue Aug 10 08:56:43 2010
@@ -285,9 +285,6 @@ class GadgetContext {
* @return SecurityToken An object representation of the token data.
*/
public function validateToken($token, $signer) {
- if (count(explode(':', $token)) < 7) {
- $token = urldecode(base64_decode($token));
- }
if (empty($token)) {
throw new Exception("Missing or invalid security token");
}