Merge branch 'master' of https://github.com/gnuboard/g5 into g54

This commit is contained in:
thisgun committed 2018-10-22 17:55:29 +09:00
commit c84efa72a4
4 files changed
+28 -15

No files matched your search

+2 -2
View File
@@ -4,12 +4,12 @@ include_once('./_common.php');
$g5['title'] = '이미지 크게보기';
include_once(G5_PATH.'/head.sub.php');
$filename = preg_replace('/[^A-Za-z0-9 _ .-\/]/', '', $_GET['fn']);
$filename = preg_replace('/[^A-Za-z0-9 _ .\-\/]/', '', $_GET['fn']);
$extension = pathinfo($filename, PATHINFO_EXTENSION);
if ( ! preg_match('/(jpg|jpeg|png|gif|bmp)$/i', $extension) ){
alert_close('확장자가 이미지인것만 요청할수 있습니다.');
alert_close('이미지 확장자가 아닙니다.');
}
if(strpos($filename, 'data/editor')) {