mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
#1394 check csrf comment
This commit is contained in:
parent
c3250bb7a2
commit
89b9ce6ddc
1 changed files with 7 additions and 1 deletions
|
|
@ -637,10 +637,16 @@ class commentController extends comment
|
|||
* Fix the comment
|
||||
* @param object $obj
|
||||
* @param bool $is_admin
|
||||
* @param bool $manual_updated
|
||||
* @return object
|
||||
*/
|
||||
function updateComment($obj, $is_admin = FALSE)
|
||||
function updateComment($obj, $is_admin = FALSE, $manual_updated = FALSE)
|
||||
{
|
||||
if(!$manual_updated && !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