[evolution] Bug 790952 - Skip extra leading forward slashes in mailto: from Chrome



commit 3df28c17fd10ab942304571ac1e9106a218fc752
Author: Milan Crha <mcrha redhat com>
Date:   Wed Nov 29 18:48:53 2017 +0100

    Bug 790952 - Skip extra leading forward slashes in mailto: from Chrome

 src/composer/e-msg-composer.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/composer/e-msg-composer.c b/src/composer/e-msg-composer.c
index 0d4c555..a71a7e1 100644
--- a/src/composer/e-msg-composer.c
+++ b/src/composer/e-msg-composer.c
@@ -4446,8 +4446,12 @@ handle_mailto (EMsgComposer *composer,
 
        buf = g_strdup (mailto);
 
-       /* Parse recipients (everything after ':' until '?' or eos). */
+       /* Parse recipients (everything after ':' and up to three leading forward slashes until '?' or eos). 
*/
        p = buf + 7;
+
+       while (*p == '/' && p - buf < 10)
+               p++;
+
        len = strcspn (p, "?");
        if (len) {
                content = g_strndup (p, len);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]