Index: lib/ezwebdav/classes/ezwebdavserver.php =================================================================== --- lib/ezwebdav/classes/ezwebdavserver.php (revision 12492) +++ lib/ezwebdav/classes/ezwebdavserver.php (working copy) @@ -464,13 +464,19 @@ } } + $isCollection = $entry['mimetype'] == 'httpd/unix-directory'; + // If this is not a collection, don't leave a trailing '/' + // on the href. If you do, Goliath gets confused. + if (!$isCollection) { + $encodedPath = rtrim($encodedPath, '/'); + } + $xmlText .= "\n" . " " . $encodedPath ."\n" . " \n" . " \n"; $unknownProperties = array(); - $isCollection = $entry['mimetype'] == 'httpd/unix-directory'; foreach ( $requestedProperties as $requestedProperty ) {