Use our webdav handler as download url instead of an own download method

This commit is contained in:
Ralf Becker 2008-03-04 08:35:45 +00:00
parent 42688f5cd2
commit 83a2341c3a

View File

@ -395,15 +395,16 @@ class filemanager_ui
/**
* URL to download the file
*
* We use our webdav handler as download url instead of an own download method.
* The webdav hander (filemanager/webdav.php) recognices eGW's session cookie and of cause understands regular GET requests.
*
* @param string $path
* @return string
*/
private static function download_url($path)
{
return '/index.php?menuaction=filemanager.uifilemanager.view&path='.base64_encode(dirname($path)).'&file='.base64_encode(egw_vfs::basename($path));
// better use webdav url, if we recognice the session cookie of the browser
// return '/filemanager/webdav.php'.$path;
return '/filemanager/webdav.php'.$path;
}
/**