Commit b77b58f5 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed ua check

parent 6dc06a17
......@@ -37,8 +37,9 @@ class Spam
if ($spam === true) {
$browser = new Agent();
$browser->setUserAgent($_SERVER["AGENT"]);
if ($browser === "Chrome" && $browser->version($browser) === "91.0.4472.77") {
if ($browser->browser() === "Chrome" && $browser->version($browser->browser()) === "91.0.4472.77") {
$this->logFail2Ban($request->ip());
}
// ToDo Remove Log
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment