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:
parent
ea144a1024
commit
5aafe2500a
5 changed files with 63 additions and 9 deletions
|
|
@ -1,3 +1,4 @@
|
|||
pub mod maybe_redirect;
|
||||
pub mod paste_id;
|
||||
pub mod pretty;
|
||||
pub mod pretty_syntax;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue