최신글 캐시 파일 삭제 취약점 수정

This commit is contained in:
thisgun
2017-12-06 18:31:36 +09:00
parent ea55f3880e
commit 6bf57bd4c6

View File

@ -2137,6 +2137,10 @@ function check_device($device)
// 게시판 최신글 캐시 파일 삭제
function delete_cache_latest($bo_table)
{
if (!preg_match("/^([A-Za-z0-9_]{1,20})$/", $bo_table)) {
return;
}
$files = glob(G5_DATA_PATH.'/cache/latest-'.$bo_table.'-*');
if (is_array($files)) {
foreach ($files as $filename)