[polari/wip/carlosg/tracker: 445/445] lib: Do not escape channel/contact names




commit 363420fb138da6b37ac5b429d3a477d875c8b012
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Jun 20 17:16:02 2021 +0200

    lib: Do not escape channel/contact names
    
    We don't need escaping these strings before giving them to the
    TrackerResource.

 src/lib/polari-message.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/lib/polari-message.c b/src/lib/polari-message.c
index 5737a88e..f7995ea8 100644
--- a/src/lib/polari-message.c
+++ b/src/lib/polari-message.c
@@ -132,7 +132,7 @@ create_account_resource (const char *id)
   TrackerResource *res;
   char *uri;
 
-  uri = tracker_sparql_escape_uri_printf ("urn:account:%s", id);
+  uri = g_strdup_printf ("urn:account:%s", id);
 
   res = tracker_resource_new (uri);
 
@@ -152,7 +152,7 @@ create_channel_resource (const char *name,
   TrackerResource *res;
   char *uri;
 
-  uri = tracker_sparql_escape_uri_printf ("urn:channel:%s:%s", account_id, name);
+  uri = g_strdup_printf ("urn:channel:%s:%s", account_id, name);
 
   res = tracker_resource_new (uri);
 
@@ -176,7 +176,7 @@ create_sender_resource (const char *nick,
   char *uri, *id;
 
   id = g_ascii_strdown (nick, -1);
-  uri = tracker_sparql_escape_uri_printf ("urn:contact:%s:%s", account_id, id);
+  uri = g_strdup_printf ("urn:contact:%s:%s", account_id, id);
 
   res = tracker_resource_new (uri);
 


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