Commit 1c1a9883 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch '437-confidential-issue' into 'development'

Filterregel hinzugefügt

Closes #437

See merge request !715
parents aa925c27 d5f7bfd8
......@@ -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