diff --git a/lib/ldapclient.php b/lib/ldapclient.php index e192c8b..5e7d401 100644 --- a/lib/ldapclient.php +++ b/lib/ldapclient.php @@ -55,7 +55,8 @@ public function getGithubLoginFromMail($mail) { # $et contains GITHIB:id or BITBUCKET:id $id = explode(":", $et); if($id[0] == "GITHUB") { - return $id[1]; + #clean up whitespace + return trim($id[1]); last; } } @@ -161,4 +162,4 @@ public function isMemberOfGroup($mail, $group) { return $rValue; } } -?> \ No newline at end of file +?>