Active
Project:
Coder
Version:
9.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Jul 2026 at 10:55 UTC
Updated:
7 Aug 2026 at 06:54 UTC
Jump to comment: Most recent
This is a fairly regular issue that translatable strings contain markup that could be imported as translated strings due to locale_string_is_safe() running them through Xss:filter(). A typical example would be <br/> which gets rejected, while <br /> (with a space in front of the end tag) is perfectly OK.
A rule that checks for known patterns or even also uses Xss:filter() to identify and reports unsupported strings as an error.
Comments
Comment #2
cmlaraLinking existing issues requesting to importing security sniffs into Coder (not sure if these had a rule that would cover this however XSS was part of them IIRC).