escape text before sending it to notification daemin. Fixes #4517
This commit is contained in:
parent
c294fa0d6e
commit
bbafb36ada
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue