Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
파일다운로드시 한글파일명 이슈 다시 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Dec 18, 2018
1 parent 8aa1541 commit ea443d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bbs/download.php
Expand Up @@ -84,11 +84,16 @@
$g5['title'] = '다운로드 > '.conv_subject($write['wr_subject'], 255);

//파일명에 한글이 있는 경우
/*
if(preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $file['bf_source'])){
// 2015.09.02 날짜의 파이어폭스에서 인코딩된 문자 그대로 출력되는 문제가 발생됨, 2018.12.11 날짜의 파이어폭스에서는 해당 현상이 없으므로 해당 코드를 사용 안합니다.
$original = iconv('utf-8', 'euc-kr', $file['bf_source']); // SIR 잉끼님 제안코드
} else {
$original = urlencode($file['bf_source']);
}
*/

$original = urlencode($file['bf_source']);

@include_once($board_skin_path.'/download.tail.skin.php');

Expand Down

0 comments on commit ea443d6

Please sign in to comment.