public function assertIpNotBanned()
{
$bannedIps = $this->app()->container('bannedIps');
$result = \XF\Util\Ip::checkIpsAgainstBinaryRangeList($this->request->getAllIps(), $bannedIps['data']);
getIp
function probably needs a bit of hardening to validate/parse the external headers if they are set.it seems to me that these problems are due to incompatibility of any plugin.. But xenforo developers know better… and my intuition didn't lie to me this issue sounds like a very simple code conflict…
No, that's a security patch.Should I put back the line from the older version to fix this issue?
X-Forwarded-For
headergetAllIps()
methodNo. It comes from using an old version of PHP that generates a warning when fed an invalid IP address instead of returningSo the problem comes from an incompatible addon?
false
like newer versions do. This behavior was changed in PHP 7.3, which is probably why @Kier et al haven't been able to reproduce it.@
or use a try-catch to disregard the error.for example xenforo gives information about a version when it is released. mysql: 5.5 also use PHP:8. Following those recommendations is to get the most out of the forumThank you, Paul. You're 100% correct, the forum is running PHP 7.2. I will talk to the forum owner to arrange upgrading his PHP version.
Do you have the same problem even though you set PHP to 8 on your server?same problem
Hmm... i change php 7.2 to php 8.Do you have the same problem even though you set PHP to 8 on your server?
We use essential cookies to make this site work, and optional cookies to enhance your experience.