[gaim-migrate @ 10139]

Sun, 20 Jun 2004 21:40:15 +0000

author
Nelson Elhage
date
Sun, 20 Jun 2004 21:40:15 +0000
changeset 9331
adae1d519c83
parent 9330
efe4a4d07fb0
child 9332
9452c2623bd5

[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: Christian Hammond <chipx86@chipx86.com>

COPYRIGHT file | annotate | diff | comparison | revisions
src/protocols/msn/utils.c file | annotate | diff | comparison | revisions
--- 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++;

mercurial