From 4b94597c8f6741997009532112211ad0e84af20f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 28 Oct 2012 08:13:56 +0000 Subject: [PATCH] Empty UA strings are better browsers --- inc/functions.php | 6 +++--- templates/de/html/admin/admin_validate_reset_hash_form.tpl | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/inc/functions.php b/inc/functions.php index 0f372b79a7..a860162bd5 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1957,10 +1957,10 @@ function isSpider () { // Get the UA and trim it down $userAgent = trim(detectUserAgent(TRUE)); - // It should not be empty, if so it is better a spider/bot + // It should not be empty, if so it is better a browser if (empty($userAgent)) { - // It is a spider/bot - return TRUE; + // It is a browser that blocks its UA string + return FALSE; } // END - if // Is it a spider? diff --git a/templates/de/html/admin/admin_validate_reset_hash_form.tpl b/templates/de/html/admin/admin_validate_reset_hash_form.tpl index 46cb1368b9..a41c9e1482 100644 --- a/templates/de/html/admin/admin_validate_reset_hash_form.tpl +++ b/templates/de/html/admin/admin_validate_reset_hash_form.tpl @@ -1,11 +1,12 @@
-
+ + + -- 2.39.2
{--ADMIN_VALIDATE_HASH_TITLE--}
{--ADMIN_ENTER_LOGIN--} @@ -14,9 +15,9 @@