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:
+1
-1
@@ -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]));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user