You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/08/22 22:29:23 UTC
svn commit: r688189 -
/incubator/shindig/trunk/php/src/common/samplecontainer/BasicSecurityToken.php
Author: chabotc
Date: Fri Aug 22 13:29:23 2008
New Revision: 688189
URL: http://svn.apache.org/viewvc?rev=688189&view=rev
Log:
Reinstate forcing mod id to be an int value, but return it unmodified
Modified:
incubator/shindig/trunk/php/src/common/samplecontainer/BasicSecurityToken.php
Modified: incubator/shindig/trunk/php/src/common/samplecontainer/BasicSecurityToken.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/common/samplecontainer/BasicSecurityToken.php?rev=688189&r1=688188&r2=688189&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/common/samplecontainer/BasicSecurityToken.php (original)
+++ incubator/shindig/trunk/php/src/common/samplecontainer/BasicSecurityToken.php Fri Aug 22 13:29:23 2008
@@ -158,6 +158,9 @@
if ($this->isAnonymous()) {
throw new Exception("Can't get moduleId from an anonymous token");
}
+ if (!is_numeric($this->tokenData[$this->MODULE_KEY])) {
+ throw new Exception("Module ID should be an integer");
+ }
return $this->tokenData[$this->MODULE_KEY];
}
}