Explorar el Código

Normalize paths in database queries (#15217)

theguymadmax hace 1 mes
padre
commit
75f472e6a7
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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))