fix APT search

replace broken cgi.escape with working html.escape
This commit is contained in:
Vincent Vermeulen 2020-12-28 13:52:05 +01:00 committed by Michael Webster
parent b807a89b68
commit 57632a3e30

View File

@ -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 = "<b>%s</b>" % cgi.escape(text)
text = "<b>%s</b>" % 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)