mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
Use our webdav handler as download url instead of an own download method
This commit is contained in:
parent
42688f5cd2
commit
83a2341c3a
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user