codeling / bfstop

Brute Force Stop Plugin (for Joomla!)
https://bfstop.bfroehler.info
GNU General Public License v3.0
36 stars 20 forks source link

Blocked IP and Allow List in 1.5.1 not working in php < 8 (call to undefined function str_contains) #213

Closed codeling closed 9 months ago

codeling commented 9 months ago

Version 1.5.1 uses str_contains in the views "Blocked IP" and "Allow List".

This function is only available in PHP >= 8; but BFStop v1.5.x should still support Joomla 3, which has a minimum requirement of PHP 5.3.10, so str_contains needs to be poly-filled

codeling commented 9 months ago

Fixed with this commit, released in version 1.5.2.