im.pidgin.pidgin.2.2.2: aff089bc73ecc6fe8ebbeac670db8be13511fcf4

lschiere at pidgin.im lschiere at pidgin.im
Tue Oct 23 11:30:38 EDT 2007


-----------------------------------------------------------------
Revision: aff089bc73ecc6fe8ebbeac670db8be13511fcf4
Ancestor: 0810c68ce97a8213a5edbf5ffe7c1418915d3dfe
Author: lschiere at pidgin.im
Date: 2007-10-23T15:19:23
Branch: im.pidgin.pidgin.2.2.2

Modified files:
        libpurple/util.c

ChangeLog: 

a patch from stu for html handling.

fixes #3436

-------------- next part --------------
============================================================
--- libpurple/util.c	35cf28aad624d0bb6301b48212d39640d04564c6
+++ libpurple/util.c	3e8c83d56aec92ddc526b2a0fc612a1072bebb77
@@ -1566,7 +1566,7 @@ purple_markup_html_to_xhtml(const char *
 					pt->dest_tag = "a";
 					tags = g_list_prepend(tags, pt);
 					if(xhtml)
-						g_string_append_printf(xhtml, "<a href='%s'>", g_strstrip(url->str));
+						g_string_append_printf(xhtml, "<a href='%s'>", url ? g_strstrip(url->str) : "");
 					continue;
 				}
 				if(!g_ascii_strncasecmp(c, "<font", 5) && (*(c+5) == '>' || *(c+5) == ' ')) {


More information about the Commits mailing list