diff --git a/modules/board/skins/default/view_document.html b/modules/board/skins/default/view_document.html index 21857a03d..606be6336 100644 --- a/modules/board/skins/default/view_document.html +++ b/modules/board/skins/default/view_document.html @@ -62,7 +62,7 @@ {$lang->uploaded_file} -
{$file->source_filename} ({FileHandler::filesize($file->file_size)}) ({number_format($file->download_count)})
+
{$file->source_filename} ({FileHandler::filesize($file->file_size)}) ({number_format($file->download_count)})
diff --git a/modules/file/file.controller.php b/modules/file/file.controller.php index e221c7a98..0500c4459 100644 --- a/modules/file/file.controller.php +++ b/modules/file/file.controller.php @@ -152,6 +152,13 @@ $buff .= sprintf("parent.editor_insert_uploaded_file(\"%d\", \"%d\",\"%s\", \"%d\", \"%s\", \"%s\", \"%s\");\n", $document_srl, $file_info->file_srl, $file_info->source_filename, $file_info->file_size, FileHandler::filesize($file_info->file_size), $file_info->direct_download=='Y'?$file_info->uploaded_filename:'', $file_info->sid); } + header("Content-Type: text/html; charset=UTF-8"); + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); + header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); + header("Cache-Control: no-store, no-cache, must-revalidate"); + header("Cache-Control: post-check=0, pre-check=0", false); + header("Pragma: no-cache"); + $buff = sprintf("", $document_srl, $buff); print $buff; exit();