[gaim-migrate @ 8164]

Tue, 18 Nov 2003 03:14:40 +0000

author
Ambrose Li <ambrose.li@gmail.com>
date
Tue, 18 Nov 2003 03:14:40 +0000
changeset 7550
deceec35bb4b
parent 7549
51b8404961e1
child 7551
bbecbdc3b9ba

[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: Luke Schierer <lschiere@pidgin.im>

src/protocols/yahoo/yahoo.c file | annotate | diff | comparison | revisions
--- 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&nbsp;");
+	}
+	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>"),

mercurial