projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
85b3665
)
Fix bug #3109 “libravatar: make mail address lower case before hashing MD5”
author
Christian Hesse
<mail@eworm.de>
Thu, 13 Mar 2014 14:03:39 +0000
(15:03 +0100)
committer
Ricardo Mones
<ricardo@mones.org>
Fri, 14 Mar 2014 07:53:54 +0000
(08:53 +0100)
Thanks again Christian Hesse for the patch!
src/plugins/libravatar/libravatar.c
patch
|
blob
|
history
diff --git
a/src/plugins/libravatar/libravatar.c
b/src/plugins/libravatar/libravatar.c
index 843ffb4a74e03fb61af6342ec3e2b7fe666b0bef..ef9219e33801a0d63272eaeea15cd151d318258c 100644
(file)
--- a/
src/plugins/libravatar/libravatar.c
+++ b/
src/plugins/libravatar/libravatar.c
@@
-58,8
+58,15
@@
static gboolean libravatar_header_update_hook(gpointer source, gpointer data)
debug_print("libravatar avatar_header_update invoked\n");
if (!strcmp(acd->header, "From:")) {
- gchar *a = g_strdup(acd->content);
+ gchar *a, *lower;
+
+ a = g_strdup(acd->content);
extract_address(a);
+
+ /* string to lower */
+ for (lower = a; *lower; lower++)
+ *lower = g_ascii_tolower(*lower);
+
debug_print("libravatar added '%s'\n", a);
procmsg_msginfo_add_avatar(acd->msginfo, AVATAR_LIBRAVATAR, a);
}