Removed unnecessary "stripcslashes" method call (fixes #194)

This commit is contained in:
alextselegidis 2016-10-20 23:05:43 +02:00
parent 2c38a2165e
commit e6082ab2e0
1 changed files with 2 additions and 2 deletions

View File

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