diff --git a/inc/caldav-PROPFIND.php b/inc/caldav-PROPFIND.php index c37d6fd9..7e20a909 100644 --- a/inc/caldav-PROPFIND.php +++ b/inc/caldav-PROPFIND.php @@ -615,6 +615,7 @@ function get_collection_contents( $depth, $user_no, $collection ) { $sql .= 'collection_id '; $sql .= 'FROM collection '; $sql .= 'WHERE parent_container='.qpg($collection->dav_name); + $sql .= "AND NOT dav_name ~ '/\.(in|out)/$'"; $sql .= ' ORDER BY collection_id'; } $qry = new PgQuery($sql, PgQuery::Plain(iCalendar::HttpDateFormat()), PgQuery::Plain(iCalendar::HttpDateFormat()));