changeset 9331:851b8c672011

[gaim-migrate @ 10139] Patch by Nelson Elhage to strip the mailto: from URLs, so the person on the other side of the conversation will see foo@bar.com instead of mailto:foo@bar.com. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 20 Jun 2004 21:40:15 +0000
parents b4dc3827470a
children 222eb83af4d3
files COPYRIGHT src/protocols/msn/utils.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Sun Jun 20 21:36:53 2004 +0000
+++ b/COPYRIGHT	Sun Jun 20 21:40:15 2004 +0000
@@ -40,6 +40,7 @@
 Marc E.
 Andrew Echols
 Sean Egan <sean.egan@binghamton.edu>
+Nelson Elhage
 Ignacio J. Elia
 Brian Enigma
 Stefan Esser
--- a/src/protocols/msn/utils.c	Sun Jun 20 21:36:53 2004 +0000
+++ b/src/protocols/msn/utils.c	Sun Jun 20 21:40:15 2004 +0000
@@ -211,6 +211,9 @@
 			else if (!g_ascii_strncasecmp(c + 1, "a href=\"", 8))
 			{
 				c += 9;
+				
+				if (!g_ascii_strncasecmp(c, "mailto:", 7))
+					c += 7;
 
 				while (g_ascii_strncasecmp(c, "\">", 2))
 					msg[retcount++] = *c++;