changeset 323:6ebabb96485f

try g_uri_escape_string() instead of picky purple_url_encode().
author Yoshiki Yazawa <[email protected]>
date Sat, 19 Sep 2009 03:43:23 +0900
parents 6be85af48b6b
children 5e0c1f59a090
files icon.c
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/icon.c	Sat Sep 19 02:00:29 2009 +0900
+++ b/icon.c	Sat Sep 19 03:43:23 2009 +0900
@@ -247,9 +247,17 @@
 
     gchar *tmp;
     /* url encode basename. twitter needs this. */
-    if(service == twitter_service)
+#if 0
+   if(service == twitter_service)
         tmp = g_strdup_printf("%s/%s", url,
                               purple_url_encode(slash+1));
+#else
+   if(service == twitter_service) {
+       gchar *tmp0 = g_uri_escape_string(slash+1, NULL, FALSE);
+       tmp = g_strdup_printf("%s/%s", url, tmp0);
+       g_free(tmp0);
+   }
+#endif
     else if(service == wassr_service) {
         gchar *tmp0 = NULL;
         tmp0 = g_regex_replace(regp[SIZE_128_WASSR], slash+1,