파일경로 필터링 코드 추가

This commit is contained in:
chicpro
2016-08-01 09:32:52 +09:00
parent fbe30c7ad6
commit c1eab8e3c7

View File

@ -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 파일이 존재하지 않습니다.');