Skip to content

Commit

Permalink
[*] URLDecode SearchStrings before actually searching for them (e.g. …
Browse files Browse the repository at this point in the history
…search for "your mom"...)
  • Loading branch information
Baine committed Jul 15, 2019
1 parent d391430 commit 76e0aa8
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@
using Shoko.Server.Extensions;
using Shoko.Commons.Utils;
using Shoko.Server.AniDB_API.Titles;
using Shoko.Server.Utilities;
using System.IO;
using System.Text.Encodings.Web;
using AniDBAPI;
using AniDBAPI.Commands;
using F23.StringSimilarity;
using Microsoft.AspNetCore.Mvc;
using Shoko.Server.Renamer;
using Shoko.Server.Settings;

namespace Shoko.Server
Expand Down Expand Up @@ -757,7 +753,7 @@ public List<CL_AnimeSearch> OnlineAnimeTitleSearch(string titleQuery)
else
{
// title search so look at the web cache
List<AniDBRaw_AnimeTitle_Anime> titles = AniDB_TitleHelper.Instance.SearchTitle(titleQuery);
List<AniDBRaw_AnimeTitle_Anime> titles = AniDB_TitleHelper.Instance.SearchTitle(System.Web.HttpUtility.UrlDecode(titleQuery));

foreach (AniDBRaw_AnimeTitle_Anime tit in titles)
{
Expand Down

0 comments on commit 76e0aa8

Please sign in to comment.