Permalink
Browse files

merged from MOODLE_14_STABLE - trim() user data coming from external …

…auth - now covers cases where we had a space on the truncation limit
  • Loading branch information...
1 parent ca4030d commit adfc03f90e2d5f75ee8aff1a4f0d50331b24dec8 martinlanghoff committed Feb 14, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/moodlelib.php
View
@@ -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]));
}
}

0 comments on commit adfc03f

Please sign in to comment.