merged from MOODLE_14_STABLE - trim() user data coming from external auth - now covers cases where we had a space on the truncation limit

This commit is contained in:
martinlanghoff
2005-02-14 01:30:57 +00:00
parent ca4030dd1d
commit adfc03f90e
+1 -1
View File
@@ -1804,7 +1804,7 @@ function truncate_userinfo($info) {
// apply where needed
foreach (array_keys($info) as $key) {
if (!empty($limit[$key])) {
$info[$key] = substr(trim($info[$key]),0, $limit[$key]);
$info[$key] = trim(substr($info[$key],0, $limit[$key]));
}
}