Mercurial > pidgin
changeset 7550:ebf1f580d6a9
[gaim-migrate @ 8164]
" yahoo.c currently checks for the string "Last Updated:"
in the profile web page to determine whether the
profile is in English. However, I have found that some
English-language profiles have "Last Updated "
instead of "Last Updated".
The attached trivial patch makes yahoo.c additionally
check for "Last Updated " as a valid magic string
indicating that a profile is in English." --quoth Ambrose C. LI (acli)
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Tue, 18 Nov 2003 03:14:40 +0000 |
parents | 586fb1594072 |
children | 2dfbcda49e65 |
files | src/protocols/yahoo/yahoo.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c Tue Nov 18 03:07:30 2003 +0000 +++ b/src/protocols/yahoo/yahoo.c Tue Nov 18 03:14:40 2003 +0000 @@ -2615,6 +2615,9 @@ */ p = strstr(url_text, "Last Updated:"); if (!p) { + p = strstr(url_text, "Last Updated "); + } + if (!p) { g_snprintf(buf, 1024, "<html><body>%s%s<a href=\"%s%s\">%s%s</a></body></html>", _("<b>Sorry, non-English profiles are not supported at this time.</b><br><br>\n"), _("If you wish to view this profile, you will need to visit this link in your web browser<br>"),