Mercurial > pidgin.yaz
comparison src/protocols/yahoo/util.c @ 8480:b0cebd011cc0
[gaim-migrate @ 9213]
" This patch will fix yahoo sending <A> tags when it
auto-linkifies links. It converts the <A> tags into
proper markup for yahoo links in the manner that marv
had previously mentioned to me.
This will screw up if people try using the insert link
button on the toolbar. That button needs to be
disabled through a gaim prpl or connection flag for
yahoo, but I am not willing to decide how that should
be done." --Kevin Stange
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 21 Mar 2004 18:24:29 +0000 |
parents | 622fd4e800b4 |
children | ef3d81aa663a |
comparison
equal
deleted
inserted
replaced
8479:dc07d60d1183 | 8480:b0cebd011cc0 |
---|---|
590 break; | 590 break; |
591 } else { | 591 } else { |
592 i = t - src; | 592 i = t - src; |
593 break; | 593 break; |
594 } | 594 } |
595 } else if (!g_ascii_strncasecmp(&src[i+1], "A", j - i - 1)) { | |
596 while (1) { | |
597 if (++j >= len) { | |
598 g_string_append(dest, &src[i]); | |
599 i = len; | |
600 break; | |
601 } | |
602 if (src[j] == '>') { | |
603 g_string_append(dest, "\033[lm"); | |
604 i = j; | |
605 break; | |
606 } | |
607 } | |
595 } else if (g_ascii_strncasecmp(&src[i+1], "FONT", j - i - 1)) { /* not interested! */ | 608 } else if (g_ascii_strncasecmp(&src[i+1], "FONT", j - i - 1)) { /* not interested! */ |
596 while (1) { | 609 while (1) { |
597 if (++j >= len) { | 610 if (++j >= len) { |
598 g_string_append(dest, &src[i]); | 611 g_string_append(dest, &src[i]); |
599 i = len; | 612 i = len; |
630 g_string_append(dest, "\033[x2m"); | 643 g_string_append(dest, "\033[x2m"); |
631 } else if (!g_ascii_strncasecmp(&src[i+1], "U", sublen)) { | 644 } else if (!g_ascii_strncasecmp(&src[i+1], "U", sublen)) { |
632 g_string_append(dest, "\033[4m"); | 645 g_string_append(dest, "\033[4m"); |
633 } else if (!g_ascii_strncasecmp(&src[i+1], "/U", sublen)) { | 646 } else if (!g_ascii_strncasecmp(&src[i+1], "/U", sublen)) { |
634 g_string_append(dest, "\033[x4m"); | 647 g_string_append(dest, "\033[x4m"); |
648 } else if (!g_ascii_strncasecmp(&src[i+1], "/A", sublen)) { | |
649 g_string_append(dest, "\033[xlm"); | |
635 } else if (!g_ascii_strncasecmp(&src[i+1], "BR", sublen)) { | 650 } else if (!g_ascii_strncasecmp(&src[i+1], "BR", sublen)) { |
636 g_string_append_c(dest, '\n'); | 651 g_string_append_c(dest, '\n'); |
637 } else if (!g_ascii_strncasecmp(&src[i+1], "/BODY", sublen)) { | 652 } else if (!g_ascii_strncasecmp(&src[i+1], "/BODY", sublen)) { |
638 /* mmm, </body> tags. *BURP* */ | 653 /* mmm, </body> tags. *BURP* */ |
639 } else if (!g_ascii_strncasecmp(&src[i+1], "/FONT", sublen) && g_queue_peek_tail(tags)) { | 654 } else if (!g_ascii_strncasecmp(&src[i+1], "/FONT", sublen) && g_queue_peek_tail(tags)) { |