aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-04-01 07:32:57 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-04-01 07:32:57 +0800
commit79dcf66c2f47307e622ae375cb3c8b1a788e75cc (patch)
tree9f6a500d7252e3181d7f6d17b934375b251ed680 /mail
parent0b2832b47d12602ef31686fdae08d335dd54d866 (diff)
downloadgsoc2013-evolution-79dcf66c2f47307e622ae375cb3c8b1a788e75cc.tar
gsoc2013-evolution-79dcf66c2f47307e622ae375cb3c8b1a788e75cc.tar.gz
gsoc2013-evolution-79dcf66c2f47307e622ae375cb3c8b1a788e75cc.tar.bz2
gsoc2013-evolution-79dcf66c2f47307e622ae375cb3c8b1a788e75cc.tar.lz
gsoc2013-evolution-79dcf66c2f47307e622ae375cb3c8b1a788e75cc.tar.xz
gsoc2013-evolution-79dcf66c2f47307e622ae375cb3c8b1a788e75cc.tar.zst
gsoc2013-evolution-79dcf66c2f47307e622ae375cb3c8b1a788e75cc.zip
EMailRequest: Decode mail:// URIs when looking up a formatter.
This is why I hate URIs...
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-request.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mail/e-mail-request.c b/mail/e-mail-request.c
index 3fe54c6119..a99240e15c 100644
--- a/mail/e-mail-request.c
+++ b/mail/e-mail-request.c
@@ -639,9 +639,13 @@ mail_request_send_async (SoupRequest *request,
/* Get HTML content of given PURI part */
if (g_strcmp0 (uri->scheme, "mail") == 0) {
gchar *uri_str;
+ gchar *decoded_uri;
- uri_str = g_strdup_printf ("%s://%s%s", uri->scheme, uri->host, uri->path);
- emr->priv->efh = g_hash_table_lookup (formatters, uri_str);
+ uri_str = g_strdup_printf (
+ "%s://%s%s", uri->scheme, uri->host, uri->path);
+ decoded_uri = soup_uri_decode (uri_str);
+ emr->priv->efh = g_hash_table_lookup (formatters, decoded_uri);
+ g_free (decoded_uri);
g_free (uri_str);
g_return_if_fail (emr->priv->efh);