fix APT search
replace broken cgi.escape with working html.escape
This commit is contained in:
parent
b807a89b68
commit
57632a3e30
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user