mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
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:
parent
cfef135914
commit
e54f9ee079
@ -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
|
||||
|
@ -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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user