Commit cfd1d2236be6ed51242e5c95c9849c7c93cf5cc0
1 parent
7100a616
fix for KTS-1055: download should include correct filename.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5598 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
lib/storage/ondiskhashedstoragemanager.inc.php
| @@ -173,7 +173,7 @@ class KTOnDiskHashedStorageManager extends KTStorageManager { | @@ -173,7 +173,7 @@ class KTOnDiskHashedStorageManager extends KTStorageManager { | ||
| 173 | KTMime::getMimeTypeName($oDocument->getMimeTypeID())); | 173 | KTMime::getMimeTypeName($oDocument->getMimeTypeID())); |
| 174 | header("Content-Length: ". filesize($sPath)); | 174 | header("Content-Length: ". filesize($sPath)); |
| 175 | // prefix the filename presented to the browser to preserve the document extension | 175 | // prefix the filename presented to the browser to preserve the document extension |
| 176 | - header('Content-Disposition: attachment; filename="' . "$sVersion-" . $oDocument->getFileName() . '"'); | 176 | + header('Content-Disposition: attachment; filename="' . "$sVersion-" . $oContentVersion->getFileName() . '"'); |
| 177 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); | 177 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); |
| 178 | header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); | 178 | header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); |
| 179 | header("Cache-Control: must-revalidate"); | 179 | header("Cache-Control: must-revalidate"); |