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 875bbe12f8b6acb782e9bc566f8f62eabe6b2a69..1a662123f54ac4f80e31b449a22bb508b19c3757 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.