Do not strip plus sign when drag&drop attaching files.
authorAndrej Kacian <ticho@claws-mail.org>
Sun, 18 Dec 2016 21:34:44 +0000 (22:34 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Sun, 18 Dec 2016 21:34:44 +0000 (22:34 +0100)
Closes bug #3742.

src/common/utils.c

index 875bbe1..1a66212 100644 (file)
@@ -1374,7 +1374,7 @@ GList *uri_list_extract_filenames(const gchar *uri_list)
                                        *file = '\0';
                                        strncpy(escaped_utf8uri, p, q - p + 1);
                                        escaped_utf8uri[q - p + 1] = '\0';
-                                       decode_uri(file, escaped_utf8uri);
+                                       decode_uri_with_plus(file, escaped_utf8uri, FALSE);
                    /*
                     * g_filename_from_uri() rejects escaped/locale encoded uri
                     * string which come from Nautilus.