From 83a2341c3a364aebd882a524f41df620f833edc6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 4 Mar 2008 08:35:45 +0000 Subject: [PATCH] Use our webdav handler as download url instead of an own download method --- filemanager/inc/class.filemanager_ui.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/filemanager/inc/class.filemanager_ui.inc.php b/filemanager/inc/class.filemanager_ui.inc.php index 474c83bf3d..e151f34f33 100644 --- a/filemanager/inc/class.filemanager_ui.inc.php +++ b/filemanager/inc/class.filemanager_ui.inc.php @@ -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; } /**