"Patch #1149 from JF B: get_egwId could not deal with dashes in the Id, which can happen with LDAP"

This commit is contained in:
Ralf Becker 2007-10-12 05:52:57 +00:00
parent cd266aba21
commit e024ecd870

View File

@ -169,8 +169,10 @@
if(empty($_globalUid)) return false;
$globalUidParts = explode('-',$_globalUid);
array_shift($globalUidParts); // remove the app name
array_pop($globalUidParts); // remove the install_id
return $globalUidParts[1];
return explode('-',$globalUidParts); // return the rest, allowing to have dashs in the id, can happen with LDAP!
}
// This is used for searching the access fields