[philomena] fix search parameter escaping (#2215)

The pluses from search terms in /tags/ URLs need to be
replaced with spaces to get accepted by Philomena.
This commit is contained in:
Mike Fährmann
2022-01-23 01:03:37 +01:00
parent 9ca8bb2dc0
commit 7cb29224f0

View File

@@ -172,7 +172,7 @@ class PhilomenaSearchExtractor(PhilomenaExtractor):
PhilomenaExtractor.__init__(self, match)
groups = match.groups()
if groups[-1]:
q = groups[-1]
q = groups[-1].replace("+", " ")
for old, new in (
("-colon-" , ":"),
("-dash-" , "-"),