Prechádzať zdrojové kódy

#2926 Add check for 'function_exists' for 'get_magic_quotes_gpc' function

Alex Trofimov 6 rokov pred
rodič
commit
db8ac98253

+ 1 - 1
modules/boonex/antispam/classes/BxAntispamModule.php

@@ -89,7 +89,7 @@ class BxAntispamModule extends BxDolModule
         if ($this->serviceIsIpWhitelisted($sIp))
             return false;
 
-        if (get_magic_quotes_gpc() && $isStripSlashes == BX_SLASHES_AUTO)
+        if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc() && $isStripSlashes == BX_SLASHES_AUTO)
             $sContent = stripslashes($sContent);
         
         $bRet = false;