From dde38ac23c834d5f0b9ea88f6b2f788e4fb43803 Mon Sep 17 00:00:00 2001
From: Dominik Pfennig <dominik@suma-ev.de>
Date: Mon, 30 Jan 2017 10:26:48 +0100
Subject: [PATCH] Update MetaGer.php

---
 app/MetaGer.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/MetaGer.php b/app/MetaGer.php
index 635e3e0fc..e76c352cb 100644
--- a/app/MetaGer.php
+++ b/app/MetaGer.php
@@ -330,7 +330,7 @@ class MetaGer
     public function doBotProtection($bot)
     {
         $hash = md5(date('YmdHi'));
-        if (preg_match("/^\d+$/s", $this->getEingabe()) && $bot !== $hash) {
+        if ((preg_match("/^\d+$/s", $this->getEingabe()) || strpos($this->request->input('focus'), "%3bamp" !== FALSE) ) && $bot !== $hash) {
             return true;
         } else {
             return false;
-- 
GitLab