Skip to content

Commit

Permalink
Update contact form error handling
Browse files Browse the repository at this point in the history
Rescue from missing contact params which can happen when spammers
attempt to use our forms - probably via scripts or automated actions.

Fixes #8212
  • Loading branch information
gbp committed Apr 23, 2024
1 parent 91a0740 commit db0dd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/help_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class HelpController < ApplicationController

ContactSpamError = Class.new(StandardError)

rescue_from ContactSpamError do
rescue_from ContactSpamError, ActionController::ParameterMissing do
redirect_to frontpage_url
end

Expand Down

0 comments on commit db0dd4b

Please sign in to comment.