Skip to content

Commit

Permalink
chore: avoid email notification on form protection error
Browse files Browse the repository at this point in the history
  • Loading branch information
mrothauer committed Aug 9, 2021
1 parent 2abf990 commit 6a51785
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Log/Engine/FileAndEmailLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ private function sendEmailWithErrorInformation($message)
'RssHelper is deprecated',
'UsersController::publicProfile()',
'workshops\/ajaxGetAllWorkshopsForMap',
preg_quote('{"results":[{"address_components"')
preg_quote('{"results":[{"address_components"'),
'Form tampering protection token validation failed',
];
if (preg_match('`' . join('|', $ignoredExceptionsRegex) . '`', $message)) {
return false;
Expand Down

0 comments on commit 6a51785

Please sign in to comment.