diff options
author | Lukas Winkler <git@lw1.at> | 2019-09-10 03:17:02 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-09-10 03:17:02 +0300 |
commit | 5e1432643ac243bd3b2cf7dba841c46bda758405 (patch) | |
tree | 9682422e83cee88c42ea7488b305e72e16fccc5c | |
parent | 14c4688dab2f9fa13115adeb30477a9fcab467c7 (diff) |
fix magic quotes deprecation warning (#14873)
-rw-r--r-- | libs/HTML/QuickForm2.php | 2 | ||||
-rw-r--r-- | 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 48d10de076..e3b768c39b 100644 --- a/libs/HTML/QuickForm2.php +++ b/libs/HTML/QuickForm2.php @@ -106,7 +106,7 @@ class HTML_QuickForm2 extends HTML_QuickForm2_Container '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 536b915d0b..be7dfe7f23 100644 --- a/tests/javascript/matomo.php +++ b/tests/javascript/matomo.php @@ -106,7 +106,7 @@ if (isset($_GET['requests'])) { $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; |