Fixed encoding problems in WebDAV and vfs:

- egw_vfs::download_url as not encoding + or ' ' in pathes
- HTTP_WebDAV_Server was urldecoding $_SERVER[PATH_INFO], which is
  wrong, as it is NOT encoded
- HTTP_WebDAV_Server was NOT urlencoding the pathes in PROPFIND
  responses, causing eg. cadaver not to be able to use dirs containing
  + or space
This commit is contained in:
Ralf Becker 2008-10-21 11:57:26 +00:00
parent cfef135914
commit e54f9ee079
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ class vfs_widget
{
if ($n < count($comps)-1 || $mime == egw_vfs::DIR_MIME_TYPE)
{
$value['l'.$n] = '/index.php?menuaction=filemanager.filemanager_ui.index&path='.$path;
$value['l'.$n] = '/index.php?menuaction=filemanager.filemanager_ui.index&path='.urlencode($path);
$target = '';
}
else

View File

@ -992,7 +992,7 @@ class egw_vfs extends vfs_stream_wrapper
{
$path = parse_url($path,PHP_URL_PATH);
}
return '/webdav.php'.$path;
return '/webdav.php'.strtr($path,array('%' => '%25','+' => '%2B',' ' => '%20'));
}
/**