Skip to content
Snippets Groups Projects
Commit bbafb36a authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

escape text before sending it to notification daemin. Fixes #4517

parent c294fa0d
No related branches found
No related tags found
No related merge requests found
......@@ -320,6 +320,9 @@ def popup(event_type, jid, account, msg_type='', path_to_image=None,
'''Notifies a user of an event. It first tries to a valid implementation of
the Desktop Notification Specification. If that fails, then we fall back to
the older style PopupNotificationWindow method.'''
# escape text like <3
text = gobject.markup_escape_text(text)
title = gobject.markup_escape_text(title)
if gajim.config.get('use_notif_daemon') and dbus_support.supported:
try:
DesktopNotification(event_type, jid, account, msg_type,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment