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

Filterregel hinzugefügt

parent 4b59208e
No related branches found
No related tags found
2 merge requests!716Development,!715Filterregel hinzugefügt
...@@ -330,7 +330,17 @@ class MetaGer ...@@ -330,7 +330,17 @@ class MetaGer
public function doBotProtection($bot) public function doBotProtection($bot)
{ {
$hash = md5(date('YmdHi')); $hash = md5(date('YmdHi'));
if ((preg_match("/^\d+$/s", $this->getEingabe()) || strpos($this->request->input('focus'), "%3bamp") !== FALSE ) && $bot !== $hash) {
$shouldCheck = false;
foreach ($this->request->all() as $key => $value) {
if (strpos($key, "amp;") !== false) {
$shouldCheck = true;
break;
}
}
if ((preg_match("/^\d+$/s", $this->getEingabe()) || $shouldCheck) && $bot !== $hash) {
return true; return true;
} else { } else {
return false; return false;
......
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