From: Alberto Garcia Date: Fri, 19 Oct 2007 14:06:14 +0000 (+0000) Subject: In mailto: urls parameters after the first one are separated by '&', X-Git-Tag: git_migration_finished~2242 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=be4bae5363b5a22e08563176643e8cc0c45e8b37 In mailto: urls parameters after the first one are separated by '&', not by '?' pmo-trunk-r3538 --- diff --git a/src/dbus_api/modest-dbus-callbacks.c b/src/dbus_api/modest-dbus-callbacks.c index 61ebb4c..f1a3c9b 100644 --- a/src/dbus_api/modest-dbus-callbacks.c +++ b/src/dbus_api/modest-dbus-callbacks.c @@ -158,8 +158,8 @@ static gchar* uri_parse_mailto (const gchar* mailto, GSList** list_items_and_val /* Looking for the end of a value: */ if (start_item_value) { - const size_t len = strcspn (p, "?"); /* Returns whole string if none found. */ - /* ? marks the start of a new item: */ + const size_t len = strcspn (p, "&"); /* Returns whole string if none found. */ + /* & marks the start of a new item: */ if (len) { if (start_item_name && len_item_name) { /* Finish the previously-started item: */ @@ -175,7 +175,7 @@ static gchar* uri_parse_mailto (const gchar* mailto, GSList** list_items_and_val } /* Skip over the value and mark the start of a possible new name/value pair: */ - p += (len + 1); /* Skip over the ? */ + p += (len + 1); /* Skip over the & */ start_item_name = p; len_item_name = 0; start_item_value = NULL;