PHP Warning count 경고문 코드 수정 및 기타 코드 수정

This commit is contained in:
thisgun
2020-06-04 17:21:40 +09:00
parent b90b15ac77
commit 426e4e2819
3 changed files with 102 additions and 95 deletions

View File

@ -6,6 +6,10 @@ include_once(G5_PATH.'/head.sub.php');
$filename = preg_replace('/[^A-Za-z0-9 _ .\-\/]/', '', $_GET['fn']);
if(function_exists('clean_relative_paths')){
$filename = clean_relative_paths($filename);
}
$extension = pathinfo($filename, PATHINFO_EXTENSION);
if ( ! preg_match('/(jpg|jpeg|png|gif|bmp)$/i', $extension) ){