forked from extern/egroupware
Use our webdav handler as download url instead of an own download method
This commit is contained in:
parent
42688f5cd2
commit
83a2341c3a
@ -396,14 +396,15 @@ class filemanager_ui
|
|||||||
/**
|
/**
|
||||||
* URL to download the file
|
* 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
|
* @param string $path
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
private static function download_url($path)
|
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));
|
return '/filemanager/webdav.php'.$path;
|
||||||
// better use webdav url, if we recognice the session cookie of the browser
|
|
||||||
// return '/filemanager/webdav.php'.$path;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user