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:07:30 +00:00
parent 2ac27f4ffd
commit 64050083d1

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)
{