Skip to content
Snippets Groups Projects
Commit d56335bc authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

modified spam regex

parent f124eab5
No related branches found
No related tags found
1 merge request!1479Development
...@@ -196,7 +196,7 @@ class HumanVerification extends Controller ...@@ -196,7 +196,7 @@ class HumanVerification extends Controller
$eingabe = \Request::input('eingabe'); $eingabe = \Request::input('eingabe');
if (\preg_match("/^susimail\s+-site:[^\s]+\s-site:/si", $eingabe)) { if (\preg_match("/^susimail\s+-site:[^\s]+\s-site:/si", $eingabe)) {
return true; 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; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment