Author: chabotc
Date: Wed May 21 10:30:40 2008
New Revision: 658774
URL: http://svn.apache.org/viewvc?rev=658774&view=rev
Log:
Only throw an exception on empty tokens if authz is not empty
Modified:
incubator/shindig/trunk/php/src/common/samplecontainer/BasicSecurityTokenDecoder.php
Modified:
incubator/shindig/trunk/php/src/common/samplecontainer/BasicSecurityTokenDecoder.php
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/common/samplecontainer/BasicSecurityTokenDecoder.php?rev=658774&r1=658773&r2=658774&view=diff
==============================================================================
---
incubator/shindig/trunk/php/src/common/samplecontainer/BasicSecurityTokenDecoder.php
(original)
+++
incubator/shindig/trunk/php/src/common/samplecontainer/BasicSecurityTokenDecoder.php
Wed May 21 10:30:40 2008
@@ -33,7 +33,7 @@
*/
public function createToken($stringToken)
{
- if (empty($stringToken)) {
+ if (empty($stringToken) && !empty($_GET['authz'])) {
throw new GadgetException('INVALID_GADGET_TOKEN');
}
try {