Parcourir la source

Backport pull request #15217 from jellyfin/release-10.11.z

Normalize paths in database queries

Original-merge: 75f472e6a78a7516927078238d102f9eff95b7a3

Merged-by: crobibero <cody@robibe.ro>

Backported-by: Bond_009 <bond.009@outlook.com>
theguymadmax il y a 1 mois
Parent
commit
28b0657608
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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))
         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))
         if (!string.IsNullOrWhiteSpace(filter.PresentationUniqueKey))