diff --git a/adm/view.php b/adm/view.php index 057eea104..58db281e8 100644 --- a/adm/view.php +++ b/adm/view.php @@ -2,6 +2,7 @@ include_once('./_common.php'); $call = isset($_REQUEST['call']) ? strtolower(preg_replace('/[^a-z0-9_]/i', '', $_REQUEST['call'])) : ''; +$token = isset($_REQUEST['token']) ? clean_xss_tags($_REQUEST['token'], 1, 1) : ''; if( ! $call ){ return; diff --git a/bbs/content.php b/bbs/content.php index b74670150..6d91c1387 100644 --- a/bbs/content.php +++ b/bbs/content.php @@ -12,12 +12,12 @@ if( !isset($g5['content_table']) ){ // 내용 if($co_seo_title){ $co = get_content_by_field($g5['content_table'], 'content', 'co_seo_title', generate_seo_title($co_seo_title)); - $co_id = $co['co_id']; + $co_id = isset($co['co_id']) ? $co['co_id'] : 0; } else { $co = get_content_db($co_id); } -if( ! (isset($co['co_seo_title']) && $co['co_seo_title']) && $co['co_id'] ){ +if( ! (isset($co['co_seo_title']) && $co['co_seo_title']) && isset($co['co_id']) && $co['co_id'] ){ seo_title_update($g5['content_table'], $co['co_id'], 'content'); }