From c7de5c043cf905460bccdaa3f224d9fd1fe6c270 Mon Sep 17 00:00:00 2001 From: HZH <42015599+capric98@users.noreply.github.com> Date: Thu, 7 Apr 2022 23:15:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20%2F=20in=20path=20will=20be=20converted?= =?UTF-8?q?=20to=20"=20=E2=80=BA=20"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index 18a48893..648a49eb 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]