알지보드 ( 2010-02-15 20:30:32, 211.xxx.26.xxx )
확인해보니 파일명에 공백이 있으면 공백까지만 인식이 됩니다.
rg4_include/func_comm.php 파일 1140 번째줄 쯤 rg_file_download 함수내 코드를 아래와 같이 수정해주세요.
[code]
function rg_file_download($server_name,$file_name,$type='application/octet-stream') {
if($server_name=='' || $file_name=='') return 1;
if($type=='') $type='application/octet-stream';
$filesendsize=4096;
if(!($fp = @fopen($server_name, "rb")))
return false;
// Header("Content-Type: application/octet-stream");
Header("Content-Type: {$type}; name=\"$file_name\"");
Header("Content-Disposition: attachment; filename=\"$file_name\"");
$filesize = filesize($server_name);
for ($i = 0; $i <= $filesize; $i += $filesendsize) {
if(!$body = fread($fp, $filesendsize))
return false;
[/code]
$file_name 양옆에 " 를 추가해줬습니다.