[evolution/webkit] Correct garbled mailto: uris passed in through GApplication interface
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit] Correct garbled mailto: uris passed in through GApplication interface
- Date: Mon, 11 Jul 2011 14:44:36 +0000 (UTC)
commit 4d8eaee55d6faecec2cc8279154bd1d132ef597b
Author: Milan Crha <mcrha redhat com>
Date: Mon May 16 12:40:40 2011 +0200
Correct garbled mailto: uris passed in through GApplication interface
composer/e-msg-composer.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 74a36cc..e4eb1ce 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]