mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-05 13:00:14 +01:00
"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:
parent
cd266aba21
commit
e024ecd870
@ -169,8 +169,10 @@
|
|||||||
if(empty($_globalUid)) return false;
|
if(empty($_globalUid)) return false;
|
||||||
|
|
||||||
$globalUidParts = explode('-',$_globalUid);
|
$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
|
// This is used for searching the access fields
|
||||||
|
Loading…
Reference in New Issue
Block a user