[Xfce4-commits] [apps/xfce4-notifyd] 01/01: Make sure all log entries are properly escaped
noreply at xfce.org
noreply at xfce.org
Tue Aug 22 00:21:11 CEST 2017
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-notifyd.
commit 01da28014bb66520281f662be600027ee407a639
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Tue Aug 22 00:20:52 2017 +0200
Make sure all log entries are properly escaped
Otherwise multi-line notifications break the log.
---
xfce4-notifyd/xfce-notify-log.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/xfce4-notifyd/xfce-notify-log.c b/xfce4-notifyd/xfce-notify-log.c
index df32ce2..c20f903 100644
--- a/xfce4-notifyd/xfce-notify-log.c
+++ b/xfce4-notifyd/xfce-notify-log.c
@@ -88,19 +88,19 @@ void xfce_notify_log_insert (const gchar *app_name,
timestamp = g_date_time_format (now, "%FT%T");
group = g_strdup_printf ("%s", timestamp);
- g_key_file_set_value (notify_log, group, "app_name", app_name);
- g_key_file_set_value (notify_log, group, "summary", summary);
- g_key_file_set_value (notify_log, group, "body", body);
- g_key_file_set_value (notify_log, group, "app_icon", app_icon);
+ g_key_file_set_string (notify_log, group, "app_name", app_name);
+ g_key_file_set_string (notify_log, group, "summary", summary);
+ g_key_file_set_string (notify_log, group, "body", body);
+ g_key_file_set_string (notify_log, group, "app_icon", app_icon);
timeout = g_strdup_printf ("%d", expire_timeout);
- g_key_file_set_value (notify_log, group, "expire-timeout", timeout);
+ g_key_file_set_string (notify_log, group, "expire-timeout", timeout);
for (i = 0; actions && actions[i]; i += 2) {
const gchar *cur_action_id = actions[i];
const gchar *cur_button_text = actions[i+1];
gchar *action_id_num = g_strdup_printf ("%s-%d", "action-id", j);
gchar *action_label_num = g_strdup_printf ("%s-%d", "action-label", j);
- g_key_file_set_value (notify_log, group, action_id_num, cur_action_id);
- g_key_file_set_value (notify_log, group, action_label_num, cur_button_text);
+ g_key_file_set_string (notify_log, group, action_id_num, cur_action_id);
+ g_key_file_set_string (notify_log, group, action_label_num, cur_button_text);
j++;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list