댓글 삭제 토큰 코드 수정

This commit is contained in:
chicpro
2016-06-28 10:25:55 +09:00
parent 2a9e72da41
commit cb327e902f
3 changed files with 5 additions and 5 deletions

View File

@ -2,8 +2,8 @@
// 코멘트 삭제
include_once('./_common.php');
$delete_comment_token = get_session('ss_delete_comment_token');
set_session('ss_delete_comment_token', '');
$delete_comment_token = get_session('ss_delete_comment_'.$comment_id.'_token');
set_session('ss_delete_comment_'.$comment_id.'_token', '');
if (!($token && $delete_comment_token == $token))
alert('토큰 에러로 삭제 불가합니다.');