Do not escape HTML messages in ICQ if the message beings with <HTML>. This

works around a bug with messages sent by the sim client where they would
be displayed as:

<HTML><BODY BGCOLOR="#FFFFFF">hello</BODY></HTML>

Submitted by:	ale
This commit is contained in:
Joe Marcus Clarke 2004-06-09 06:55:48 +00:00
parent 86c01e9853
commit 72ea1de3cc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=111136
4 changed files with 24 additions and 0 deletions

View file

@ -6,6 +6,7 @@
PORTNAME= gaim PORTNAME= gaim
PORTVERSION= 0.78 PORTVERSION= 0.78
PORTREVISION= 1
CATEGORIES?= net CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME} MASTER_SITE_SUBDIR= ${PORTNAME}

View file

@ -0,0 +1,11 @@
--- src/protocols/oscar/oscar.c.orig Tue Jun 1 18:12:11 2004
+++ src/protocols/oscar/oscar.c Tue Jun 1 18:12:58 2004
@@ -3127,7 +3127,7 @@
* Note: There *may* be some clients which send messages as HTML formatted -
* they need to be special-cased somehow.
*/
- if (isdigit(gaim_account_get_username(account)[0]) && isdigit(userinfo->sn[0])) {
+ if (isdigit(gaim_account_get_username(account)[0]) && isdigit(userinfo->sn[0]) && g_strncasecmp(tmp, "<HTML>", 6)) {
/* being recevied by ICQ from ICQ - escape HTML so it is displayed as sent */
gchar *tmp2 = gaim_escape_html(tmp);
g_free(tmp);

View file

@ -6,6 +6,7 @@
PORTNAME= gaim PORTNAME= gaim
PORTVERSION= 0.78 PORTVERSION= 0.78
PORTREVISION= 1
CATEGORIES?= net CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME} MASTER_SITE_SUBDIR= ${PORTNAME}

View file

@ -0,0 +1,11 @@
--- src/protocols/oscar/oscar.c.orig Tue Jun 1 18:12:11 2004
+++ src/protocols/oscar/oscar.c Tue Jun 1 18:12:58 2004
@@ -3127,7 +3127,7 @@
* Note: There *may* be some clients which send messages as HTML formatted -
* they need to be special-cased somehow.
*/
- if (isdigit(gaim_account_get_username(account)[0]) && isdigit(userinfo->sn[0])) {
+ if (isdigit(gaim_account_get_username(account)[0]) && isdigit(userinfo->sn[0]) && g_strncasecmp(tmp, "<HTML>", 6)) {
/* being recevied by ICQ from ICQ - escape HTML so it is displayed as sent */
gchar *tmp2 = gaim_escape_html(tmp);
g_free(tmp);