[Commits] [SCM] claws branch, gtk2, updated. 3.19.0-61-gc51af48dd
paul at claws-mail.org
paul at claws-mail.org
Tue Aug 2 19:25:32 UTC 2022
The branch, gtk2 has been updated
via c51af48ddcfab6e8754b68397aceb5d8b91dcde7 (commit)
from 3f9b0ac42d291da8c61bb9f7e682d77337a2e265 (commit)
Summary of changes:
src/plugins/att_remover/att_remover.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
- Log -----------------------------------------------------------------
commit c51af48ddcfab6e8754b68397aceb5d8b91dcde7
Author: Paul <paul at claws-mail.org>
Date: Tue Aug 2 20:24:32 2022 +0100
escape filenames to fix bug where filenames would not be shown and corrupt the output
also save some work for the translators, and remove some idle whitespace
diff --git a/src/plugins/att_remover/att_remover.c b/src/plugins/att_remover/att_remover.c
index 76c8edae1..d454f5a9d 100644
--- a/src/plugins/att_remover/att_remover.c
+++ b/src/plugins/att_remover/att_remover.c
@@ -284,25 +284,25 @@ static void fill_attachment_store(GtkTreeView *list_view, MimeInfo *partinfo)
partinfo = procmime_mimeinfo_next(partinfo);
if (!partinfo)
return;
-
+
while (partinfo) {
if (MIMEINFO_NOT_ATTACHMENT(partinfo)) {
partinfo = procmime_mimeinfo_next(partinfo);
continue;
}
-
+
content_type = procmime_get_content_type_str(
partinfo->type, partinfo->subtype);
-
- name = procmime_mimeinfo_get_parameter(partinfo, "filename");
+
+ name = g_markup_escape_text(procmime_mimeinfo_get_parameter(partinfo, "filename"), -1);
if (!name)
- name = procmime_mimeinfo_get_parameter(partinfo, "name");
+ name = g_markup_escape_text(procmime_mimeinfo_get_parameter(partinfo, "name"), -1);
if (!name)
name = _("unknown");
-
- label = g_strconcat("<b>",_("Type:"), "</b> ", content_type, " <b>",
- _("Size:"), "</b> ", to_human_readable((goffset)partinfo->length),
- "\n", "<b>", _("Filename:"), "</b> ", name, NULL);
+
+ label = g_strconcat("<b>", _("Type"), ":</b> ", content_type, " <b>",
+ _("Size"), ":</b> ", to_human_readable((goffset)partinfo->length),
+ "\n", "<b>", _("Filename"), ":</b> ", name, NULL);
gtk_list_store_append(list_store, &iter);
gtk_list_store_set(list_store, &iter,
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list