From bbafb36adaae10d16e92e38233fede33d0c8ec63 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 24 Nov 2008 09:48:27 +0000 Subject: [PATCH] escape text before sending it to notification daemin. Fixes #4517 --- src/notify.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/notify.py b/src/notify.py index 0d389039b..2730fc878 100644 --- a/src/notify.py +++ b/src/notify.py @@ -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,