pidgin: 55186ff1: Fixes #9661

sulabh at soc.pidgin.im sulabh at soc.pidgin.im
Sat Aug 1 03:50:39 EDT 2009


-----------------------------------------------------------------
Revision: 55186ff177bde8f04b5bd54b2f0d1f6bdb4d36fb
Ancestor: 919a35dac828a0687db4c920aa61da30e16d17e7
Author: sulabh at soc.pidgin.im
Date: 2009-08-01T07:45:23
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/55186ff177bde8f04b5bd54b2f0d1f6bdb4d36fb

Modified files:
        libpurple/protocols/yahoo/util.c

ChangeLog: 

Fixes #9661

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/util.c	379b884cf44e9ae3c7037bef8cd5277076a484b0
+++ libpurple/protocols/yahoo/util.c	a75d4a718e58b8c8f989a0320aacb067e0758d14
@@ -757,6 +757,8 @@ char *yahoo_html_to_codes(const char *sr
 					} else if (!g_ascii_strncasecmp(&src[i+1], "A HREF=\"", j - i - 1)) {
 						j += 7;
 						g_string_append(dest, "\033[lm");
+						if (purple_str_has_prefix(src + j, "mailto:"))
+							j += sizeof("mailto:") - 1;
 						while (1) {
 							g_string_append_c(dest, src[j]);
 							if (++j >= src_len) {


More information about the Commits mailing list