Double sanitization when i18n_field enabled

Created on 14 February 2024, 9 months ago
Updated 28 February 2024, 9 months ago

Problem/Motivation

When i18n_field module is enabled, we are calling it's function i18n_string_translate() to build the term levels options list. By default this leads to check_plain() being called on the term level strings. Since this module handles sanitization on it's own when rendering we are calling check_plain() multiple times on the same string. This can result in broken output when using special chars in the term level names.

Proposed resolution

We should disable sanitization by passing a parameter when calling the i18n_string_translate() function.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia gresko8

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024