Correct garbled mailto: uris passed in through GApplication interface

This commit is contained in:
Milan Crha
2011-05-16 12:40:40 +02:00
committed by Rodrigo Moya
parent e54a663364
commit 42580e1802

View File

@ -3921,6 +3921,10 @@ handle_mailto (EMsgComposer *composer, const gchar *mailto)
/* Parse recipients (everything after ':' until '?' or eos). */
p = buf + 7;
/* skip leading "///" which are added when passing "mailto:user@server.com"
from the outside, after porting EShell to GApplication */
if (g_str_has_prefix (p, "///"))
p += 3;
len = strcspn (p, "?");
if (len) {
content = g_strndup (p, len);