[gaim-migrate @ 6161]

Wed, 04 Jun 2003 07:08:13 +0000

author
Christian Hammond <chipx86@chipx86.com>
date
Wed, 04 Jun 2003 07:08:13 +0000
changeset 5737
70be0426f186
parent 5736
9da8189897a5
child 5738
69ba274636c3

[gaim-migrate @ 6161]
We now escape text sent across Trepia. This was causing gaim to crash.

src/protocols/trepia/trepia.c file | annotate | diff | comparison | revisions
--- a/src/protocols/trepia/trepia.c	Wed Jun 04 06:37:16 2003 +0000
+++ b/src/protocols/trepia/trepia.c	Wed Jun 04 07:08:13 2003 +0000
@@ -802,14 +802,19 @@
 			int len, int flags)
 {
 	TrepiaSession *session = gc->proto_data;
+	char *escaped_msg;
 	char *buffer;
 
+	escaped_msg = g_markup_escape_text(message, -1);
+
 	buffer = g_strdup_printf(
 		"<F>\n"
 		"<a>%s</a>\n"
 		"<b>%s</b>\n"
 		"</F>",
-		who, message);
+		who, escaped_msg);
+
+	g_free(escaped_msg);
 
 	if (trepia_write(session->fd, buffer, strlen(buffer)) < 0) {
 		gaim_connection_error(gc, _("Write error"));

mercurial