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

This commit is contained in:
Yann Leboulanger 2008-11-24 09:48:27 +00:00
parent c294fa0d6e
commit bbafb36ada
1 changed files with 3 additions and 0 deletions

View File

@ -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,