From d56335bc137ea7c7558c1077e20fa319250c3b03 Mon Sep 17 00:00:00 2001 From: Dominik Hebeler <dominik@suma-ev.de> Date: Mon, 11 Nov 2019 10:07:58 +0100 Subject: [PATCH] modified spam regex --- app/Http/Controllers/HumanVerification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/HumanVerification.php b/app/Http/Controllers/HumanVerification.php index e35256048..b9683d2c9 100644 --- a/app/Http/Controllers/HumanVerification.php +++ b/app/Http/Controllers/HumanVerification.php @@ -196,7 +196,7 @@ class HumanVerification extends Controller $eingabe = \Request::input('eingabe'); if (\preg_match("/^susimail\s+-site:[^\s]+\s-site:/si", $eingabe)) { return true; - } else if (\preg_match("/^\s*site:\"linkedin\.com\/in\"\s+/si", $eingabe)) { + } else if (\preg_match("/^\s*site:\"linkedin\.com[^\"]*\"\s+/si", $eingabe)) { return true; } -- GitLab