mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 04:21:17 -05:00
don't strip slashes; leaving valid json - parsing is up to the people
This commit is contained in:
parent
27106f39c4
commit
9882c00a3f
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user