diff --git a/bbs/move_update.php b/bbs/move_update.php index e3919905f..ac6c0582e 100644 --- a/bbs/move_update.php +++ b/bbs/move_update.php @@ -19,6 +19,8 @@ $save_count_write = 0; $save_count_comment = 0; $cnt = 0; +$wr_id_list = preg_replace('/[^0-9\,]/', '', $_POST['wr_id_list']); + $sql = " select distinct wr_num from $write_table where wr_id in ({$wr_id_list}) order by wr_id "; $result = sql_query($sql); while ($row = sql_fetch_array($result)) diff --git a/g4_import_run.php b/g4_import_run.php index aa8f8a214..28c949931 100644 --- a/g4_import_run.php +++ b/g4_import_run.php @@ -28,6 +28,8 @@ $g4_config_file = trim($_POST['file_path']); if(!$g4_config_file) alert('config.php 파일의 경로를 입력해 주십시오.'); +$g4_config_file = preg_replace('#/config.php$#i', '', $g4_config_file).'/config.php'; + if(!is_file($g4_config_file)) alert('입력하신 경로에 config.php 파일이 존재하지 않습니다.');