If ReCaptcha thinks you are a spammer, error 500 now takes you to about (could be a diff page) - noted in #7
This commit is contained in:
parent
23b4732c0c
commit
5106ac16b9
@ -324,6 +324,9 @@ class ApplicationController < BaseController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def error_500(exception = nil)
|
def error_500(exception = nil)
|
||||||
|
return if response_body.present?
|
||||||
|
return if response.committed?
|
||||||
|
|
||||||
@page_title = 'page_titles.500.An_Error_Occurred'
|
@page_title = 'page_titles.500.An_Error_Occurred'
|
||||||
@main_title = 'error.500.title'
|
@main_title = 'error.500.title'
|
||||||
@original_params = params.clone
|
@original_params = params.clone
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user