nesaku / BiblioReads

An Alternative Private Goodreads Front-End.
https://biblioreads.eu.org
GNU Affero General Public License v3.0
170 stars 9 forks source link

[BUG] Searches with "+" in the search term return no results #25

Closed csmith1210 closed 1 week ago

csmith1210 commented 2 weeks ago

Describe the bug My use case is using Redirector to only redirect searches to BiblioReads. The search url from Goodreads has the string with '+' as the deliminator. When this is passed to BiblioReads, the search results are empty. If the same string is passed with spaces as the deliminator, then the correct results are returned.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://biblioreads.eu.org/search/going+on+a+bear+hunt
  2. See no results
  3. Go to https://biblioreads.eu.org/search/going%20on%20a%20bear%20hunt
  4. See results

Expected behavior Server should replace '+' characters in the search term with spaces (or %20 if manipulating the url).

nesaku commented 1 week ago

Thanks for reporting this bug. This has been fixed in https://github.com/nesaku/BiblioReads/commit/60d30d98a5a6f51858764b9c7135339ba35ce52e (v2.23.2).