diff src/protocols/sametime/sametime.c @ 12496:f9d0ab1474ac

[gaim-migrate @ 14808] removing meanwhile library code from gaim tree, use libmeanwhile-1.0.0 instead if available to enable the sametime plugin. also fixing a status message bug due to unescaped markup committer: Tailor Script <tailor@pidgin.im>
author Christopher O'Brien <siege@pidgin.im>
date Fri, 16 Dec 2005 04:08:05 +0000
parents 12db50600de5
children 977ebab0435f
line wrap: on
line diff
--- a/src/protocols/sametime/sametime.c	Fri Dec 16 03:34:01 2005 +0000
+++ b/src/protocols/sametime/sametime.c	Fri Dec 16 04:08:05 2005 +0000
@@ -3229,7 +3229,7 @@
   pd = gc->proto_data;
 
   ret = mwServiceAware_getText(pd->srvc_aware, &t);
-  return g_strdup(ret);
+  return ret? g_markup_escape_text(ret, -1): NULL;
 }
 
 
@@ -4187,7 +4187,11 @@
     g_string_append(str, "<hr>");
     
     tmp = mwServiceAware_getText(pd->srvc_aware, &idb);
-    if(tmp) g_string_append(str, tmp);
+    if(tmp) {
+      tmp = g_markup_escape_text(tmp, -1);
+      g_string_append(str, tmp);
+      g_free((char *) tmp);
+    }
   }
 
   /* @todo emit a signal to allow a plugin to override the display of