comparison src/protocols/yahoo/yahoo.c @ 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&nbsp;" instead of "Last Updated". The attached trivial patch makes yahoo.c additionally check for "Last Updated&nbsp;" 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 3c21f3084ff0
children ea2d07ad05a9
comparison
equal deleted inserted replaced
7549:586fb1594072 7550:ebf1f580d6a9
2612 * english. the problem is, that every user may choose his/her own profile 2612 * english. the problem is, that every user may choose his/her own profile
2613 * language. this language has nothing to do with the preferences of the 2613 * language. this language has nothing to do with the preferences of the
2614 * user which looks at the profile 2614 * user which looks at the profile
2615 */ 2615 */
2616 p = strstr(url_text, "Last Updated:"); 2616 p = strstr(url_text, "Last Updated:");
2617 if (!p) {
2618 p = strstr(url_text, "Last Updated&nbsp;");
2619 }
2617 if (!p) { 2620 if (!p) {
2618 g_snprintf(buf, 1024, "<html><body>%s%s<a href=\"%s%s\">%s%s</a></body></html>", 2621 g_snprintf(buf, 1024, "<html><body>%s%s<a href=\"%s%s\">%s%s</a></body></html>",
2619 _("<b>Sorry, non-English profiles are not supported at this time.</b><br><br>\n"), 2622 _("<b>Sorry, non-English profiles are not supported at this time.</b><br><br>\n"),
2620 _("If you wish to view this profile, you will need to visit this link in your web browser<br>"), 2623 _("If you wish to view this profile, you will need to visit this link in your web browser<br>"),
2621 YAHOO_PROFILE_URL, info_data->name, YAHOO_PROFILE_URL, info_data->name); 2624 YAHOO_PROFILE_URL, info_data->name, YAHOO_PROFILE_URL, info_data->name);