From 6229f181870e9a349c5e17d93ea0778d8e34e7a3 Mon Sep 17 00:00:00 2001 From: Luc DEUFFIC <ldeuffic@afi-sa.fr> Date: Fri, 26 Jul 2019 14:07:30 +0200 Subject: [PATCH] Modification library/Class/UserAgent.php : ajout des Bots qwant, bing et linguee --- library/Class/UserAgent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Class/UserAgent.php b/library/Class/UserAgent.php index 4c71d7ea5ed..f8182b0a509 100644 --- a/library/Class/UserAgent.php +++ b/library/Class/UserAgent.php @@ -32,7 +32,7 @@ class Class_UserAgent { public function isBot() { - return 0 !== preg_match('/(bot\/|sistrix|voilabot|slurp|mauibot|ahrefsbot|semrushbot)/i', + return 0 !== preg_match('/(bot\/|sistrix|voilabot|slurp|mauibot|ahrefsbot|semrushbot|qwant|bing|linguee)/i', $this->_user_agent_string); } -- GitLab