Commit cfd1d2236be6ed51242e5c95c9849c7c93cf5cc0

Authored by Brad Shuttleworth
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
lib/storage/ondiskhashedstoragemanager.inc.php
... ... @@ -173,7 +173,7 @@ class KTOnDiskHashedStorageManager extends KTStorageManager {
173 173 KTMime::getMimeTypeName($oDocument->getMimeTypeID()));
174 174 header("Content-Length: ". filesize($sPath));
175 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 177 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
178 178 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
179 179 header("Cache-Control: must-revalidate");
... ...