Skip to content

Commit 0d8f351

Browse files
Merge pull request #9144 from sbulen/21_dont_log_bad_referrers
[2.1] Dont let bots flood logs
2 parents d49255b + 84246f7 commit 0d8f351

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Sources/Security.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,6 @@ function checkSession($type = 'post', $from_action = '', $is_fatal = true)
680680
if (isset($parsed_url['host']) && strtolower($referrer['host']) != strtolower($parsed_url['host']) && strtolower($referrer['host']) != strtolower($real_host))
681681
{
682682
$error = 'verify_url_fail';
683-
$log_error = true;
684683
}
685684
}
686685

0 commit comments

Comments
 (0)