From 5106ac16b95268c14ed886d9acd457fbfde43f27 Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Sun, 1 Feb 2026 01:18:34 +0000 Subject: [PATCH] If ReCaptcha thinks you are a spammer, error 500 now takes you to about (could be a diff page) - noted in #7 --- app/controllers/application_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 896c942..84fa041 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -324,6 +324,9 @@ class ApplicationController < BaseController end def error_500(exception = nil) + return if response_body.present? + return if response.committed? + @page_title = 'page_titles.500.An_Error_Occurred' @main_title = 'error.500.title' @original_params = params.clone