forked from Ponysearch/Ponysearch
[fix] engine: wikicommons - don't quoute ':|' in URL parameters
From [1]: It seems to be because of [2] For some reason it gets url encoded twice, resulting in - ``filetype%253Abitmap%257Cdrawing+birds`` instead of - ``filetype:bitmap%7Cdrawing+birds`` [1] https://github.com/searxng/searxng/issues/2707 [2] https://github.com/searxng/searxng/blob/master/searx/engines/wikicommons.py#L43 Closes: #2707 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
4f8895c6de
commit
01be9e0e20
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ def request(query, params):
|
||||||
'gsrsearch': "filetype:bitmap|drawing " + query,
|
'gsrsearch': "filetype:bitmap|drawing " + query,
|
||||||
}
|
}
|
||||||
|
|
||||||
params["url"] = f"{base_url}/w/api.php{search_prefix}&{urlencode(args)}"
|
params["url"] = f"{base_url}/w/api.php{search_prefix}&{urlencode(args, safe=':|')}"
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue