Archiving rules: HTML special chars need to be escaped
Issue #943
resolved
Piler 1.3.4 build 994, fresh install.
I created an archiving rule with this in the subject field:
Cron <root@.*>.*
The admin web interface shows it as
Cron .*
though, presumably because the <>
characters are not being escaped to >
and <
respectively, so the browser treats it as HTML tag.
This led to some confusion as to why certain cron emails were not being discarded despite the rule being there. This probably also applies to other areas, like for example retention rules.
I verified the rule is being stored correctly in the archiving_rule
table in the database.
Comments (3)
-
repo owner -
repo owner - changed status to resolved
-
repo owner Please checkout the fix.
- Log in to comment
I'll add the required htmlescape() call to them, and let you know soon.