[evolution/gnome-3-30] e_mail_formatter_format_address: Quote name part when it contains special letters
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-30] e_mail_formatter_format_address: Quote name part when it contains special letters
- Date: Fri, 16 Nov 2018 12:39:10 +0000 (UTC)
commit 1fe6e60e0a348567cf3cb5aefa7e4452b645eeeb
Author: Milan Crha <mcrha redhat com>
Date: Fri Nov 16 13:36:01 2018 +0100
e_mail_formatter_format_address: Quote name part when it contains special letters
This adds quotes around mail address name when it contains special
characters, which could be understood by a user as something else.
Related to https://gitlab.gnome.org/GNOME/evolution-data-server/issues/56
src/em-format/e-mail-formatter-utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/em-format/e-mail-formatter-utils.c b/src/em-format/e-mail-formatter-utils.c
index 1113f9a2ba..415ed8dc63 100644
--- a/src/em-format/e-mail-formatter-utils.c
+++ b/src/em-format/e-mail-formatter-utils.c
@@ -145,7 +145,7 @@ e_mail_formatter_format_address (EMailFormatter *formatter,
gchar *real, *mailaddr;
if (show_mails || no_links) {
- if (strchr (a->name, ',') || strchr (a->name, ';'))
+ if (strchr (a->name, ',') || strchr (a->name, ';') || strchr
(a->name, '\"') || strchr (a->name, '<') || strchr (a->name, '>'))
g_string_append_printf (out, ""%s"", name);
else
g_string_append (out, name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]