File tree Expand file tree Collapse file tree
lib/private/Files/Cache/Wrapper Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -324,11 +324,13 @@ public function getQueryFilterForStorage(): ISearchOperator {
324324 }
325325
326326 public function getCacheEntryFromSearchResult (ICacheEntry $ rawEntry ): ?ICacheEntry {
327- $ rawEntry = $ this ->getCache ()->getCacheEntryFromSearchResult ($ rawEntry );
328- if ($ rawEntry ) {
329- $ jailedPath = $ this ->getJailedPath ($ rawEntry ->getPath ());
330- if ($ jailedPath !== null ) {
331- return $ this ->formatCacheEntry (clone $ rawEntry ) ?: null ;
327+ if ($ this ->getGetUnjailedRoot () === '' || strpos ($ rawEntry ->getPath (), $ this ->getGetUnjailedRoot ()) === 0 ) {
328+ $ rawEntry = $ this ->getCache ()->getCacheEntryFromSearchResult ($ rawEntry );
329+ if ($ rawEntry ) {
330+ $ jailedPath = $ this ->getJailedPath ($ rawEntry ->getPath ());
331+ if ($ jailedPath !== null ) {
332+ return $ this ->formatCacheEntry (clone $ rawEntry ) ?: null ;
333+ }
332334 }
333335 }
334336
You can’t perform that action at this time.
0 commit comments