mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
xep-0084: Normalize at out of image filename
This commit is contained in:
parent
2b6b165ed2
commit
0ea1d3f85d
@ -196,8 +196,10 @@ avatar_request_item_handler(xmpp_stanza_t *const stanza, void *const userdata)
|
||||
}
|
||||
}
|
||||
|
||||
g_string_append(filename, from_attr);
|
||||
gchar *from = str_replace(from_attr, "@", "_at_");
|
||||
g_string_append(filename, from);
|
||||
g_string_append(filename, ".png");
|
||||
free(from);
|
||||
|
||||
GError *err = NULL;
|
||||
if (g_file_set_contents (filename->str, de, size, &err) == FALSE) {
|
||||
|
Loading…
Reference in New Issue
Block a user