From ecc779a16972daaf8f9dd33fb5b73cc440ada5cc Mon Sep 17 00:00:00 2001 From: Lukas Winkler Date: Mon, 9 Sep 2019 17:11:23 +0200 Subject: [PATCH] fix magic quotes deprecation warning --- libs/HTML/QuickForm2.php | 2 +- tests/javascript/matomo.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/HTML/QuickForm2.php b/libs/HTML/QuickForm2.php index 48d10de0760..e3b768c39b5 100644 --- a/libs/HTML/QuickForm2.php +++ b/libs/HTML/QuickForm2.php @@ -106,7 +106,7 @@ public function __construct($id, $method = 'post', $attributes = null, $trackSub 'post' == $method && (!empty($_POST) || !empty($_FILES)))) { $this->addDataSource(new HTML_QuickForm2_DataSource_SuperGlobal( - $method, get_magic_quotes_gpc() + $method, False )); } if ($trackSubmit) { diff --git a/tests/javascript/matomo.php b/tests/javascript/matomo.php index 536b915d0b2..be7dfe7f236 100644 --- a/tests/javascript/matomo.php +++ b/tests/javascript/matomo.php @@ -106,7 +106,7 @@ function logRequest($db, $uri, $data) { $input = file_get_contents("php://input"); $requests = @json_decode($input, true); - $data = json_decode(get_magic_quotes_gpc() ? stripslashes($_REQUEST['data']) : $_REQUEST['data'], true); + $data = json_decode($_REQUEST['data'], true); if (!empty($requests) && isPost()) { $query = true;