Commit 9dd2ce28 authored by Dries's avatar Dries

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

parent 175bb6d1
......@@ -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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment