From 9882c00a3f80de3c9cbc049ba7945315f76280b4 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 10 Nov 2013 12:39:57 +0100 Subject: [PATCH] don't strip slashes; leaving valid json - parsing is up to the people --- htdocs/application/controllers/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/application/controllers/api.php b/htdocs/application/controllers/api.php index a284d00..8691f56 100644 --- a/htdocs/application/controllers/api.php +++ b/htdocs/application/controllers/api.php @@ -93,13 +93,13 @@ class Api extends Main 'message' => 'Not found', ); } - echo stripslashes(json_encode($data)); + echo json_encode($data); } function random() { $this->load->model('pastes'); $data = $this->pastes->random_paste(); - echo stripslashes(json_encode($data)); + echo json_encode($data); } }