don't strip slashes; leaving valid json - parsing is up to the people

This commit is contained in:
Claude 2013-11-10 12:39:57 +01:00
parent 27106f39c4
commit 9882c00a3f

View File

@ -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);
}
}