N°2329 PHP 7.4 compat : remove get_magic_quotes_gpc/get_magic_quotes_runtime calls

Methods are now deprecated and since PHP 5.4 were always returning false
This commit is contained in:
Pierre Goiffon
2019-12-24 17:30:12 +01:00
parent 8ab157eae4
commit 9bee1905c8
3 changed files with 1 additions and 20 deletions

View File

@@ -273,10 +273,6 @@ class WizardHelper
static public function FromJSON($sJSON)
{
$oWizHelper = new WizardHelper();
if (get_magic_quotes_gpc())
{
$sJSON = stripslashes($sJSON);
}
$aData = json_decode($sJSON, true); // true means hash array instead of object
$oWizHelper->m_aData = $aData;
return $oWizHelper;