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 commentedGood catch.
Comment #2
dries commentedCommitted to CVS HEAD. Thanks.