anonymousland-synapse/changelog.d/9164.bugfix
Patrick Cloke 4937fe3d6b
Try to recover from unknown encodings when previewing media. (#9164)
Treat unknown encodings (according to lxml) as UTF-8
when generating a preview for HTML documents. This
isn't fully accurate, but will hopefully give a reasonable
title and summary.
2021-01-26 07:32:17 -05:00

2 lines
144 B
Plaintext

Fix a long-standing bug where an internal server error was raised when attempting to preview an HTML document in an unknown character encoding.