Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Assertion message generators in at least at assertRaw() use both the @raw placeholder (which in itself escapes the data) and the check_plain() function on the $raw value, thus double escaping the string. Probably applies to methods beyond assertRaw().
Found while writing tests for l10n_server (#560132: Write tests).
Comment | File | Size | Author |
---|---|---|---|
#1 | 572564-double-escape.patch | 1.6 KB | boombatower |
Comments
Comment #1
boombatower CreditAttribution: boombatower commentedGood catch.
Comment #2
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.