[balsa/stop-using-gtkbox-child-properties: 1/15] body: Use case-insensitive match.
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/stop-using-gtkbox-child-properties: 1/15] body: Use case-insensitive match.
- Date: Sun, 5 Jul 2020 20:45:18 +0000 (UTC)
commit 12333ebf2f164e7df1917bfbdf3529452913accb
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Jul 5 16:42:21 2020 -0400
body: Use case-insensitive match.
The "access-type" parameter is not case sensitive.
libbalsa/body.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libbalsa/body.c b/libbalsa/body.c
index 4fc1e43f2..d2c732305 100644
--- a/libbalsa/body.c
+++ b/libbalsa/body.c
@@ -140,7 +140,7 @@ libbalsa_message_body_set_filename(LibBalsaMessageBody * body)
access_type = libbalsa_message_body_get_parameter(body, "access-type");
- if (g_strcmp0(access_type, "URL") == 0)
+ if (access_type != NULL && g_ascii_strcasecmp(access_type, "URL") == 0)
filename = libbalsa_message_body_get_parameter(body, "URL");
else if (GMIME_IS_PART(body->mime_part))
filename = g_strdup(g_mime_part_get_filename((GMimePart *) body->mime_part));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]