mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
When bad data is provided in the URI for redirecting to a category, Rails raises an `ActionController::Redirecting::UnsafeRedirectError` error, leading to a 500 error. This patch catches the exception to render a 404 instead.