"concat with query was not working if path ended in a slash"

This commit is contained in:
Ralf Becker 2008-10-01 11:39:38 +00:00
parent 396b1212ad
commit f128866a37

View File

@ -936,7 +936,7 @@ class egw_vfs extends vfs_stream_wrapper
static function concat($url,$relative)
{
list($url,$query) = explode('?',$url,2);
return substr($url,-1) == '/' ? $url.$relative : $url.'/'.$relative.($query ? '?'.$query : '');
return (substr($url,-1) == '/' ? $url.$relative : $url.'/'.$relative).($query ? '?'.$query : '');
}
/**