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']