- Patch #565792 by pwolanin, salvis: follow-up on theme_username refactoring.

merge-requests/26/head
Dries Buytaert 2009-09-15 20:03:18 +00:00
parent 175bb6d19a
commit 9dd2ce283e
1 changed files with 1 additions and 2 deletions

View File

@ -1913,9 +1913,8 @@ function template_preprocess_username(&$variables) {
if (drupal_strlen($variables['object']->name) > 20) {
$variables['object']->name = drupal_substr($variables['object']->name, 0, 15) . '...';
}
// Make sure these are safe for use in the theme function.
// Make sure name is safe for use in the theme function.
$variables['object']->name = check_plain($variables['object']->name);
$variables['object']->extra = check_plain($variables['object']->extra);
}
/**