Mercurial > pidgin
comparison src/protocols/yahoo/util.c @ 8533:ef3d81aa663a
[gaim-migrate @ 9272]
" This patch marks up outgoing links in Yahoo so that the
URL is linked instead of the description (as was
happening before).
It sort-of fixes SimGuy bug #24 - not by disabling the
insert link button, but by formatting links such that
the link is usable by the recipient.
A GAIM_CONNECTION_NO_URLDESCRIPTION connection flag
might be useful so we don't bother asking for a
description if the protocol (eg. MSN, Yahoo & Zephyr)
doesn't support it in links, but I'll leave that for
another day, another patch." --Stu Tomlinson
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 31 Mar 2004 03:10:37 +0000 |
parents | b0cebd011cc0 |
children | 92cbf9713795 |
comparison
equal
deleted
inserted
replaced
8532:f9094d171b04 | 8533:ef3d81aa663a |
---|---|
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)) { | 595 } else if (!g_ascii_strncasecmp(&src[i+1], "A HREF=\"", j - i - 1)) { |
596 while (1) { | 596 j += 7; |
597 if (++j >= len) { | 597 g_string_append(dest, "\033[lm"); |
598 g_string_append(dest, &src[i]); | 598 while (1) { |
599 g_string_append_c(dest, src[j]); | |
600 if (++j >= len) { | |
599 i = len; | 601 i = len; |
600 break; | 602 break; |
601 } | 603 } |
602 if (src[j] == '>') { | 604 if (src[j] == '"') { |
603 g_string_append(dest, "\033[lm"); | 605 g_string_append(dest, "\033[xlm"); |
604 i = j; | 606 while (1) { |
607 if (++j >= len) { | |
608 i = len; | |
609 break; | |
610 } | |
611 if (!g_ascii_strncasecmp(&src[j], "</A>", 4)) { | |
612 j += 3; | |
613 break; | |
614 } | |
615 } | |
616 i = j; | |
605 break; | 617 break; |
606 } | 618 } |
607 } | 619 } |
608 } else if (g_ascii_strncasecmp(&src[i+1], "FONT", j - i - 1)) { /* not interested! */ | 620 } else if (g_ascii_strncasecmp(&src[i+1], "FONT", j - i - 1)) { /* not interested! */ |
609 while (1) { | 621 while (1) { |