diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-01-26 07:32:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-26 07:32:17 -0500 |
commit | 4937fe3d6be94222b02760866496781f8cc88751 (patch) | |
tree | 40dd8def98be0b515054d67776a1452d2cc41a21 /changelog.d/9164.bugfix | |
parent | Update isort to v5.7.0 (#9222) (diff) | |
download | synapse-4937fe3d6be94222b02760866496781f8cc88751.tar.xz |
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.
Diffstat (limited to 'changelog.d/9164.bugfix')
-rw-r--r-- | changelog.d/9164.bugfix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/9164.bugfix b/changelog.d/9164.bugfix new file mode 100644 index 0000000000..1c54a256c1 --- /dev/null +++ b/changelog.d/9164.bugfix @@ -0,0 +1 @@ +Fix a long-standing bug where an internal server error was raised when attempting to preview an HTML document in an unknown character encoding. |