댓글 삭제 토큰 코드 수정

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

No files matched your search

+2 -2
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('토큰 에러로 삭제 불가합니다.');