주제: 다국어 파일이름지원
인사 꾸벅
텍스트큐브 1.7에서 글을 올릴때 파일이름이 한글이 아닌 일문이나 중문으로 된 파일을 업로드하고 다운로드할려고 하면 파일이름이 깨지거든요.
제나름으로 소스를 분석해보고 interface\blog\attachment.php에서 해결책을 찾아보았습니다.
원래 소스:
header('Content-Disposition: attachment; filename="' . UTF8::convert($attachment['label']) . '"');
수정한 소스:
header('Content-Disposition: attachment; filename="' . rawurlencode($attachment['label']) . '"');
rawurlencode를 써서 파일이름을 response header에 주면 다국어로 된 파일이름이 안깨지거든요.
다음버젼에서 완성된 모습이기를 바라면서...
화이팅!!!