Skip to content

Commit

Permalink
토큰 초기화 코드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
chicpro committed Aug 10, 2016
1 parent ec32f64 commit 4515f11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bbs/write_comment_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

// 토큰체크
$comment_token = trim(get_session('ss_comment_token'));
set_session('ss_comment_token', '');
if(!trim($_POST['token']) || !$comment_token || $comment_token != $_POST['token'])
alert('올바른 방법으로 이용해 주십시오.');

Expand Down

0 comments on commit 4515f11

Please sign in to comment.