From 52ff07f6c904549586d101adea81eb0f5ab74384 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 1 May 2003 12:49:11 +0000 Subject: [PATCH] fix from sigurdne, for bug #3300 and #2740 --- phpgwapi/inc/class.vfs_shared.inc.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.vfs_shared.inc.php b/phpgwapi/inc/class.vfs_shared.inc.php index 9d1bad779d..5f66efc487 100644 --- a/phpgwapi/inc/class.vfs_shared.inc.php +++ b/phpgwapi/inc/class.vfs_shared.inc.php @@ -961,7 +961,14 @@ $lastslashpos < $baselen ? $length = 0 : $length = $lastslashpos - $baselen; $extra_path = $rarray['fake_extra_path'] = $rarray['real_extra_path'] = substr ($string, strlen ($base), $length); - $name = $rarray['fake_name'] = $rarray['real_name'] = substr ($string, strrpos ($string, $base_sep) + 1); + if($string[1] != ':') + { + $name = $rarray['fake_name'] = $rarray['real_name'] = substr ($string, strrpos ($string, $base_sep) + 1); + } + else + { + $name = $rarray['fake_name'] = $rarray['real_name'] = $string; + } if ($fake) { @@ -987,7 +994,14 @@ } else { - $rarray['fake_full_path'] = $opp_base . $rarray['fake_extra_path'] . '/' . $rarray['fake_name']; + if($rarray['fake_name'][1] != ':') + { + $rarray['fake_full_path'] = $opp_base . $rarray['fake_extra_path'] . '/' . $rarray['fake_name']; + } + else + { + $rarray['fake_full_path'] = $rarray['fake_name']; + } if ($extra_path) { $rarray['fake_leading_dirs'] = $opp_base . $extra_path;