mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
"remove trailing slash, eg. from webdav"
This commit is contained in:
parent
bd3e6ca818
commit
6f556a23df
@ -692,6 +692,8 @@ class vfs_stream_wrapper implements iface_stream_wrapper
|
||||
{
|
||||
if (self::LOG_LEVEL > 1) error_log(__METHOD__."('$path',$flags,try_create_home=$try_create_home,check_symlink_components=$check_symlink_components)");
|
||||
|
||||
if (substr($path,-1) == '/') $path = substr($path,0,-1); // remove trailing slashes, eg. added by webdav
|
||||
|
||||
if (!($url = self::resolve_url($path,!($flags & STREAM_URL_STAT_LINK))))
|
||||
{
|
||||
if (self::LOG_LEVEL > 0) error_log(__METHOD__."('$path',$flags) can NOT resolve path!");
|
||||
|
Loading…
Reference in New Issue
Block a user