Fix referrer option passed to Akismet client

Merged Chad Woolley requested to merge cwoolley-fix-akismet-server-options into master

What does this MR do?

Fix referrer option passed to Akismet client.

It wants 'referrer', not 'referer'.

Also improves exception handling so regressions such as these can be noticed and caught earlier.

See !52385 (comment 591568296) for context.

Screenshots (strongly suggested)

CAPTCHA is now working in dev again:


Does this MR meet the acceptance criteria?


Availability and Testing


Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Chad Woolley