소스 검색

Normalize paths in database queries (#15217)

theguymadmax 1 개월 전
부모
커밋
75f472e6a7
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Jellyfin.Server.Implementations/Item/BaseItemRepository.cs

+ 2 - 1
Jellyfin.Server.Implementations/Item/BaseItemRepository.cs

@@ -1763,7 +1763,8 @@ public sealed class BaseItemRepository
 
         if (!string.IsNullOrWhiteSpace(filter.Path))
         {
-            baseQuery = baseQuery.Where(e => e.Path == filter.Path);
+            var pathToQuery = GetPathToSave(filter.Path);
+            baseQuery = baseQuery.Where(e => e.Path == pathToQuery);
         }
 
         if (!string.IsNullOrWhiteSpace(filter.PresentationUniqueKey))