From e6082ab2e0df74bfd4ca213f5528fd01f4a12052 Mon Sep 17 00:00:00 2001 From: alextselegidis Date: Thu, 20 Oct 2016 23:05:43 +0200 Subject: [PATCH] Removed unnecessary "stripcslashes" method call (fixes #194) --- src/application/controllers/Backend_api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/application/controllers/Backend_api.php b/src/application/controllers/Backend_api.php index 1bb77d2d..df45d372 100644 --- a/src/application/controllers/Backend_api.php +++ b/src/application/controllers/Backend_api.php @@ -217,7 +217,7 @@ class Backend_api extends CI_Controller { // :: SAVE CUSTOMER CHANGES TO DATABASE if (isset($_POST['customer_data'])) { - $customer = json_decode(stripcslashes($_POST['customer_data']), true); + $customer = json_decode($_POST['customer_data'], true); $REQUIRED_PRIV = (!isset($customer['id'])) ? $this->privileges[PRIV_CUSTOMERS]['add'] @@ -231,7 +231,7 @@ class Backend_api extends CI_Controller { // :: SAVE APPOINTMENT CHANGES TO DATABASE if (isset($_POST['appointment_data'])) { - $appointment = json_decode(stripcslashes($_POST['appointment_data']), true); + $appointment = json_decode($_POST['appointment_data'], true); $REQUIRED_PRIV = (!isset($appointment['id'])) ? $this->privileges[PRIV_APPOINTMENTS]['add']