From fb1d13bc5831326e39c51d19f2f8e4d7c40a0ffd Mon Sep 17 00:00:00 2001 From: Mihai Blaga Date: Tue, 7 Mar 2017 17:08:14 +0200 Subject: [PATCH] URLEncode the string for searching (#1055) Closes #818 again --- src/NzbDrone.Core/Indexers/Newznab/NewznabRequestGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Indexers/Newznab/NewznabRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Newznab/NewznabRequestGenerator.cs index 6dca9f998..6a2bb81ca 100644 --- a/src/NzbDrone.Core/Indexers/Newznab/NewznabRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/Newznab/NewznabRequestGenerator.cs @@ -58,7 +58,7 @@ namespace NzbDrone.Core.Indexers.Newznab } else { - var searchTitle = Parser.Parser.ReplaceGermanUmlauts(Parser.Parser.NormalizeTitle(searchCriteria.Movie.Title)); + var searchTitle = System.Web.HttpUtility.UrlPathEncode(Parser.Parser.ReplaceGermanUmlauts(Parser.Parser.NormalizeTitle(searchCriteria.Movie.Title))); pageableRequests.Add(GetPagedRequests(MaxPages, Settings.Categories, "search", $"&q={searchTitle}%20{searchCriteria.Movie.Year}")); }