From f128866a37d8631dc0d34b33bd942d8cdbb58991 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 1 Oct 2008 11:39:38 +0000 Subject: [PATCH] "concat with query was not working if path ended in a slash" --- phpgwapi/inc/class.egw_vfs.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_vfs.inc.php b/phpgwapi/inc/class.egw_vfs.inc.php index 42adcefaf1..4e275d5e06 100644 --- a/phpgwapi/inc/class.egw_vfs.inc.php +++ b/phpgwapi/inc/class.egw_vfs.inc.php @@ -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 : ''); } /**