From e851597ee5a97b8f7ced3437ccd0ad1a20a46ef5 Mon Sep 17 00:00:00 2001 From: MWEclipse Date: Mon, 28 Mar 2016 15:24:23 -0400 Subject: [PATCH] Whitespace cleanup for Github id Signed-off-by: MWEclipse --- lib/ldapclient.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 +?>