Redirect on invalid UTF-8 in /p/

Previously, uploading a paste with invalid UTF-8 and then viewing it
with the pretty URL would cause a panic.
With this change, it simply redirects to the raw URL.
This commit is contained in:
Leonora Tindall
2022-01-31 20:49:05 -06:00
committed by Leonora Tindall
parent ea144a1024
commit 5aafe2500a
5 changed files with 63 additions and 9 deletions

View File

@@ -1,3 +1,4 @@
pub mod maybe_redirect;
pub mod paste_id;
pub mod pretty;
pub mod pretty_syntax;