Plus ("+" vs. "%2B") encoded search strings for opds search feeds are now working in request string (fix for #2175)

This commit is contained in:
Ozzie Isaacs
2022-03-28 13:58:41 +02:00
parent 2f949ce1dd
commit baffe1f537
5 changed files with 445 additions and 628 deletions

View File

@@ -85,7 +85,7 @@ def feed_osd():
@requires_basic_auth_if_no_ano
def feed_cc_search(query):
# Handle strange query from Libera Reader with + instead of spaces
plus_query = unquote_plus(request.base_url.split('/opds/search/')[1]).strip()
plus_query = unquote_plus(request.environ['RAW_URI'].split('/opds/search/')[1]).strip()
return feed_search(plus_query)