mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 12:31:06 -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',
|
'message' => 'Not found',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
echo stripslashes(json_encode($data));
|
echo json_encode($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
function random()
|
function random()
|
||||||
{
|
{
|
||||||
$this->load->model('pastes');
|
$this->load->model('pastes');
|
||||||
$data = $this->pastes->random_paste();
|
$data = $this->pastes->random_paste();
|
||||||
echo stripslashes(json_encode($data));
|
echo json_encode($data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user