changeset 290:6a206fbc6e46

do not apply xml escape to sending message.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Thu, 02 Apr 2009 21:23:49 +0900
parents e374e789c6fd
children 87dcbb5be76a
files main.c twitter_api.c
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/main.c	Thu Apr 02 00:01:33 2009 +0900
+++ b/main.c	Thu Apr 02 21:23:49 2009 +0900
@@ -111,8 +111,7 @@
     }
 
     g_free(*buffer);
-    *buffer = g_markup_escape_text(plain, -1);
-    g_free(plain);
+    *buffer = plain;
 
     /* return here if the message is not to twitter */
     if(service != twitter_service)
--- a/twitter_api.c	Thu Apr 02 00:01:33 2009 +0900
+++ b/twitter_api.c	Thu Apr 02 21:23:49 2009 +0900
@@ -476,7 +476,7 @@
 post_status_with_api(PurpleAccount *account, char **buffer)
 {
     char *request, *status, *header;
-    const char *url_encoded = purple_url_encode(*buffer);
+    const char *url_encoded = g_uri_escape_string(*buffer, "!$'()*,;=:@/?#[]", FALSE);
     char *basic_auth, *basic_auth_encoded;
 
     twitter_message_t *tm;