mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Issue 3634 댓글 작성 시 checkCSRF() 적용
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13183 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
acd89ccd9a
commit
2ac48d1a3b
1 changed files with 5 additions and 0 deletions
|
|
@ -185,6 +185,11 @@ class commentController extends comment
|
|||
*/
|
||||
function insertComment($obj, $manual_inserted = FALSE)
|
||||
{
|
||||
if(!$manual_inserted && !checkCSRF())
|
||||
{
|
||||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
if(!is_object($obj))
|
||||
{
|
||||
$obj = new stdClass();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue