summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorHZH <42015599+capric98@users.noreply.github.com>2022-04-07 23:15:58 +0800
committerGitHub <noreply@github.com>2022-04-07 23:15:58 +0800
commitc7de5c043cf905460bccdaa3f224d9fd1fe6c270 (patch)
treeaed059b7b7cbc2bfc321cd14a5e785325a59748f /searx
parent4135a7400143cc934480afced3f6858c0d671fc6 (diff)
downloadsearxng-c7de5c043cf905460bccdaa3f224d9fd1fe6c270.tar.gz
searxng-c7de5c043cf905460bccdaa3f224d9fd1fe6c270.zip
fix: %2F in path will be converted to " › "
Diffstat (limited to 'searx')
-rwxr-xr-xsearx/webapp.py2
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]