You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by bh...@apache.org on 2010/12/22 15:46:27 UTC
svn commit: r1051925 - /shindig/trunk/php/src/gadgets/GadgetContext.php
Author: bhofmann
Date: Wed Dec 22 14:46:27 2010
New Revision: 1051925
URL: http://svn.apache.org/viewvc?rev=1051925&view=rev
Log:
PHP: fixed token retrieval in GadgetContext
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=1051925&r1=1051924&r2=1051925&view=diff
==============================================================================
--- shindig/trunk/php/src/gadgets/GadgetContext.php (original)
+++ shindig/trunk/php/src/gadgets/GadgetContext.php Wed Dec 22 14:46:27 2010
@@ -272,8 +272,8 @@ class GadgetContext {
}
$this->rawToken = isset($_GET['st']) ? $_GET['st'] :
- isset($_POST['st']) ? $_POST['st'] :
- $this->parseAuthorization($_SERVER['AUTHORIZATION']);
+ (isset($_POST['st']) ? $_POST['st'] :
+ $this->parseAuthorization($_SERVER['AUTHORIZATION']));
return $this->rawToken;