From 2a1d86911b597dfefc12cd6e8972bf02a0df49bb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 21 Apr 2008 11:05:34 +0000 Subject: [PATCH] allow to call download url with an vfs-url instead of an path --- phpgwapi/inc/class.egw_vfs.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpgwapi/inc/class.egw_vfs.inc.php b/phpgwapi/inc/class.egw_vfs.inc.php index 41ca6e26a6..fe1d8992d0 100644 --- a/phpgwapi/inc/class.egw_vfs.inc.php +++ b/phpgwapi/inc/class.egw_vfs.inc.php @@ -940,6 +940,10 @@ class egw_vfs extends vfs_stream_wrapper */ static function download_url($path,$force_download=false) { + if ($path[0] != '/') + { + $path = parse_url($path,PHP_URL_PATH); + } return '/filemanager/webdav.php'.$path; }