Skip to content
Snippets Groups Projects
Commit eb8e9079 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 4b59208e 46d915c5
No related branches found
No related tags found
2 merge requests!716Development,!715Filterregel hinzugefügt
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment