[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.
pull/2243/head
Mike Fährmann 3 years ago
parent 9ca8bb2dc0
commit 7cb29224f0
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

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

Loading…
Cancel
Save