Welcome Guest, Not a member yet? Register   Sign In
Deprecation warning in \Honeypot\Honeypot.php
#2

(This post was last modified: 12-09-2023, 03:33 AM by kenjis.)

Try this:

Code:
--- a/system/Honeypot/Honeypot.php
+++ b/system/Honeypot/Honeypot.php
@@ -89,7 +89,7 @@ class Honeypot

        $prepField = $this->prepareTemplate($this->config->template);

-        $bodyBefore = $response->getBody();
+        $bodyBefore = $response->getBody() ?? '';
        $bodyAfter  = str_ireplace('</form>', $prepField . '</form>', $bodyBefore);

        if ($response->getCSP()->enabled() && ($bodyBefore !== $bodyAfter)) {
Reply


Messages In This Thread
RE: Deprecation warning in \Honeypot\Honeypot.php - by kenjis - 12-09-2023, 03:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB