From b1a0e759efa5a930aff3ce7ed7e04a2b6b57ebb8 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 27 Apr 2015 16:57:38 -0700 Subject: [PATCH] Fixed: Long sets of required/ignored words would overflow the view in Manual Search --- .../Specifications/ReleaseRestrictionsSpecification.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/ReleaseRestrictionsSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/ReleaseRestrictionsSpecification.cs index 4e997c2fe..3b448bdea 100644 --- a/src/NzbDrone.Core/DecisionEngine/Specifications/ReleaseRestrictionsSpecification.cs +++ b/src/NzbDrone.Core/DecisionEngine/Specifications/ReleaseRestrictionsSpecification.cs @@ -39,7 +39,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications if (!ContainsAny(split, title)) { _logger.Debug("[{0}] does not contain one of the required terms: {1}", title, r.Required); - return Decision.Reject("Does not contain one of the required terms: {0}", r.Required); + return Decision.Reject("Does not contain one of the required terms: {0}", r.Required.Replace(",", ", ")); } } @@ -50,7 +50,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications if (ContainsAny(split, title)) { _logger.Debug("[{0}] contains one or more ignored terms: {1}", title, r.Ignored); - return Decision.Reject("Contains one or more ignored terms: {0}", r.Ignored); + return Decision.Reject("Contains one or more ignored terms: {0}", r.Ignored.Replace(",", ", ")); } }