mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00: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.