remove additional blanks/whitespace before and after username supplied by user at logintime (refer to Tracker#2234

This commit is contained in:
Klaus Leithoff 2009-10-06 11:13:01 +00:00
parent a05931d0ce
commit 352e632d20

View File

@ -247,6 +247,10 @@ else
//conference - for strings like vinicius@thyamad.com@default , allows
//that user have a login that is his e-mail. (viniciuscb)
$login_parts = explode('@',$login);
// remove blanks
$login_parts = array_map('trim',$login_parts);
$login = implode('@',$login_parts);
$got_login = false;
if (count($login_parts) > 1)
{