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

- Patch #604828 by bangpound: added missing check_plain() in...

- Patch #604828 by bangpound: added missing check_plain() in theme_field_formatter_taxonomy_term_plain().
parent 394e7f2e
Branches
Tags
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
......@@ -1153,7 +1153,7 @@ function theme_field_formatter_taxonomy_term_link($variables) {
*/
function theme_field_formatter_taxonomy_term_plain($variables) {
$term = $variables['element']['#item']['taxonomy_term'];
return $term->name;
return check_plain($term->name);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment