From 57632a3e309d5f0d0ce1bd0d929f3214e88ba81c Mon Sep 17 00:00:00 2001 From: Vincent Vermeulen Date: Mon, 28 Dec 2020 13:52:05 +0100 Subject: [PATCH] fix APT search replace broken cgi.escape with working html.escape --- usr/lib/linuxmint/mintMenu/plugins/applications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index fe4b4ea..262d82f 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -import cgi +import html import filecmp import gettext import locale @@ -620,7 +620,7 @@ class pluginclass(object): self.suggestions.append(item) def add_search_suggestions(self, text): - text = "%s" % cgi.escape(text) + text = "%s" % html.escape(text) if self.enableInternetSearch: self.add_suggestion("/usr/lib/linuxmint/mintMenu/search_engines/ddg.svg", _("Search DuckDuckGo for %s") % text, None, self.search_ddg)