Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit adfc03f90e2d5f75ee8aff1a4f0d50331b24dec8 1 parent ca4030d
martinlanghoff authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/moodlelib.php
View
2  lib/moodlelib.php
@@ -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]));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.