From 6a517859f5ff1fa4f9f495a95a790a6de8b34be5 Mon Sep 17 00:00:00 2001 From: Mario Rothauer Date: Mon, 9 Aug 2021 16:59:29 +0200 Subject: [PATCH] chore: avoid email notification on form protection error --- src/Log/Engine/FileAndEmailLog.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Log/Engine/FileAndEmailLog.php b/src/Log/Engine/FileAndEmailLog.php index cc4ca11bf..2a5a9ffbc 100644 --- a/src/Log/Engine/FileAndEmailLog.php +++ b/src/Log/Engine/FileAndEmailLog.php @@ -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;