summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/Security/TUserManager.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/framework/Security/TUserManager.php b/framework/Security/TUserManager.php
index 60e67df8..28651de8 100644
--- a/framework/Security/TUserManager.php
+++ b/framework/Security/TUserManager.php
@@ -105,12 +105,15 @@ class TUserManager extends TModule implements IUserManager
{
foreach($xmlNode->getElementsByTagName('user') as $node)
{
- $name=strtolower($node->getAttribute('name'));
+ $name=trim(strtolower($node->getAttribute('name')));
$this->_users[$name]=$node->getAttribute('password');
if(($roles=trim($node->getAttribute('roles')))!=='')
{
foreach(explode(',',$roles) as $role)
- $this->_roles[$name][]=$role;
+ {
+ if(($role=trim($role))!=='')
+ $this->_roles[$name][]=$role;
+ }
}
}
foreach($xmlNode->getElementsByTagName('role') as $node)