[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:
@@ -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-" , "-"),
|
||||||
|
|||||||
Reference in New Issue
Block a user