diff options
author | HZH <42015599+capric98@users.noreply.github.com> | 2022-04-07 23:15:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 23:15:58 +0800 |
commit | c7de5c043cf905460bccdaa3f224d9fd1fe6c270 (patch) | |
tree | aed059b7b7cbc2bfc321cd14a5e785325a59748f /searx | |
parent | 4135a7400143cc934480afced3f6858c0d671fc6 (diff) | |
download | searxng-c7de5c043cf905460bccdaa3f224d9fd1fe6c270.tar.gz searxng-c7de5c043cf905460bccdaa3f224d9fd1fe6c270.zip |
fix: %2F in path will be converted to " › "
Diffstat (limited to 'searx')
-rwxr-xr-x | searx/webapp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 18a488934..648a49ebe 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -434,7 +434,7 @@ def _get_enable_categories(all_categories: Iterable[str]): def get_pretty_url(parsed_url: urllib.parse.ParseResult): path = parsed_url.path path = path[:-1] if len(path) > 0 and path[-1] == '/' else path - path = unquote(path).replace("/", " › ") + path = unquote(path.replace("/", " › ")) return [parsed_url.scheme + "://" + parsed_url.netloc, path] |