Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/unaio/una
Browse files Browse the repository at this point in the history
  • Loading branch information
romanlesnikov committed Mar 22, 2021
2 parents c01b789 + 69689aa commit 0c5c465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/boonex/antispam/classes/BxAntispamModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0c5c465

Please sign in to comment.