diff --git a/modules/boonex/antispam/classes/BxAntispamModule.php b/modules/boonex/antispam/classes/BxAntispamModule.php index 86f464754a..fcf1ebd072 100644 --- a/modules/boonex/antispam/classes/BxAntispamModule.php +++ b/modules/boonex/antispam/classes/BxAntispamModule.php @@ -89,7 +89,7 @@ public function serviceIsSpam ($sContent, $sIp = '', $isStripSlashes = BX_SLASHE if ($this->serviceIsIpWhitelisted($sIp)) return false; - if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc() && $isStripSlashes == BX_SLASHES_AUTO) + if (version_compare(phpversion(), '7.4.0', '<') && function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc() && $isStripSlashes == BX_SLASHES_AUTO) $sContent = stripslashes($sContent); $bRet = false;