From e9ced07b28e5a8087bc944721bf553ecf8a311a6 Mon Sep 17 00:00:00 2001 From: ta264 Date: Thu, 1 Aug 2019 22:22:28 +0100 Subject: [PATCH] Fixed: Old foreign id query too permissive --- src/NzbDrone.Core/Music/ReleaseRepository.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Music/ReleaseRepository.cs b/src/NzbDrone.Core/Music/ReleaseRepository.cs index 5688aceaf..3d6714b0e 100644 --- a/src/NzbDrone.Core/Music/ReleaseRepository.cs +++ b/src/NzbDrone.Core/Music/ReleaseRepository.cs @@ -31,7 +31,8 @@ namespace NzbDrone.Core.Music if (release == null && checkRedirect) { - release = Query.Where(x => x.OldForeignReleaseIds.Contains(foreignReleaseId)) + var id = "\"" + foreignReleaseId + "\""; + release = Query.Where(x => x.OldForeignReleaseIds.Contains(id)) .SingleOrDefault(); }