[balsa/gtk3] Replace CR or LF in an address with a space
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Replace CR or LF in an address with a space
- Date: Sat, 11 Jun 2016 23:31:37 +0000 (UTC)
commit 04d42ab1ca33fa27e914863355f858eb287e2eca
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sat Jun 11 19:04:39 2016 -0400
Replace CR or LF in an address with a space
* src/balsa-mime-widget-message.c (add_header_gchar): in an
address, replace '\r' or '\n' with a space.
ChangeLog | 5 +++++
src/balsa-mime-widget-message.c | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2a77279..cbe7d96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-06-11 Peter Bloomfield <pbloomfield bellsouth net>
+
+ * src/balsa-mime-widget-message.c (add_header_gchar): in an
+ address, replace '\r' or '\n' with a space.
+
2016-06-10 Peter Bloomfield <pbloomfield bellsouth net>
* src/balsa-mime-widget-message.c (add_header_gchar): comment on
diff --git a/src/balsa-mime-widget-message.c b/src/balsa-mime-widget-message.c
index 8b4de29..c4747d2 100644
--- a/src/balsa-mime-widget-message.c
+++ b/src/balsa-mime-widget-message.c
@@ -609,6 +609,7 @@ add_header_gchar(GtkGrid * grid, const gchar * header, const gchar * label,
sanitized = g_strdup(value);
libbalsa_utf8_sanitize(&sanitized,
balsa_app.convert_unknown_8bit, NULL);
+ g_strdelimit(sanitized, "\r\n", ' ');
value_label = gtk_label_new(sanitized);
g_free(sanitized);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]