Malformed XML in Atom feed due to truncation in the middle of a character entity
Environment
- Installation type (OTP or From Source): OTP
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.5.0
- Elixir version (
elixir -v
for from source installations, N/A for OTP): N/A - Operating system: Debian 11
- PostgreSQL version (
psql -V
): 14.6
Bug description
Pleroma is generating the following malformed XML in the Atom feed. Consequentially the feed can't be parsed.
<title>If all of the information for a key+subject matches, great! But it often doesn't, and there&#...</title>
It looks like the title is being XML-escaped and then truncated. Truncation should occur before XML escaping to ensure truncation doesn't happen in the middle of a character entity.
Thanks for all your work on Pleroma!