[epiphany] embed: Split mailto: URIs' addresses using the correct comma separator



commit d6befa25bd8bea23300754eb4671f5a51f141e70
Author: vanadiae <vanadiae35 gmail com>
Date:   Sat Jan 22 00:05:07 2022 +0100

    embed: Split mailto: URIs' addresses using the correct comma separator
    
    According to the RFC, it's not a semi-colon but a comma instead.
    
    Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1065>

 embed/ephy-embed-utils.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/embed/ephy-embed-utils.c b/embed/ephy-embed-utils.c
index 4abfe7bc9..6b27d8c0c 100644
--- a/embed/ephy-embed-utils.c
+++ b/embed/ephy-embed-utils.c
@@ -61,8 +61,10 @@ ephy_embed_utils_link_message_parse (const char *message)
 
   /* Then we also want to check if there is more than an email address
    * in the mailto: list.
+   * Splitting is done as defined in the "to" component at
+   * https://datatracker.ietf.org/doc/html/rfc6068#section-2 (so with a comma).
    */
-  splitted_message = g_strsplit_set (status_message, ";", -1);
+  splitted_message = g_strsplit_set (status_message, ",", -1);
   tmp = g_string_new (g_strdup_printf (_("Send an email message to ā€œ%sā€"),
                                        (splitted_message[0] + 7)));
 


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