Commit d5f7bfd8 authored by Dominik Hebeler's avatar Dominik Hebeler

Filterregel hinzugefügt

parent aa925c27
......@@ -330,7 +330,17 @@ class MetaGer
public function doBotProtection($bot)
{
$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;
} else {
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment