changeset 28918:5ffedd1578f0

Don't send <span>...</span> on Yahoo. Fixes #11242, #10961. committer: John Bailey <rekkanoryo@rekkanoryo.org>
author Fartash Faghri
date Fri, 29 Jan 2010 01:30:38 +0000
parents 48d2b6d1ab74
children 45fce067c690
files COPYRIGHT ChangeLog libpurple/protocols/yahoo/util.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Thu Jan 28 17:44:28 2010 +0000
+++ b/COPYRIGHT	Fri Jan 29 01:30:38 2010 +0000
@@ -147,6 +147,7 @@
 Marc Etcheverry
 David Everly
 Larry Ewing
+Fartash Faghri
 Gábor Farkas
 Jesse Farmer
 Gavan Fantom (gavan)
--- a/ChangeLog	Thu Jan 28 17:44:28 2010 +0000
+++ b/ChangeLog	Fri Jan 29 01:30:38 2010 +0000
@@ -32,6 +32,9 @@
 	* Wrap XHTML messages in <p>, as described in XEP-0071, for compatibility
 	  with some clients.
 
+	Yahoo:
+	* Don't send <span> and </span> tags.  (Fartash Faghri)
+
 	Pidgin:
 	* Correctly size conversation and status box entries when the
 	  interior-focus style property is diabled. (Gabriel Schulhof)
--- a/libpurple/protocols/yahoo/util.c	Thu Jan 28 17:44:28 2010 +0000
+++ b/libpurple/protocols/yahoo/util.c	Fri Jan 29 01:30:38 2010 +0000
@@ -884,6 +884,8 @@
 						}
 						g_free(etag);
 					}
+				} else if (g_str_equal(tag_name, "span") || g_str_equal(tag_name, "/span")) {
+					/* Do nothing */
 				} else {
 					/* We don't know what the tag is. Send it unmodified. */
 					g_string_append(dest, tag);