Skip to content
Snippets Groups Projects
Commit 9dd2ce28 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 175bb6d1
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1913,9 +1913,8 @@ function template_preprocess_username(&$variables) { ...@@ -1913,9 +1913,8 @@ function template_preprocess_username(&$variables) {
if (drupal_strlen($variables['object']->name) > 20) { if (drupal_strlen($variables['object']->name) > 20) {
$variables['object']->name = drupal_substr($variables['object']->name, 0, 15) . '...'; $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']->name = check_plain($variables['object']->name);
$variables['object']->extra = check_plain($variables['object']->extra);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment