changeset 17633:ba48f21e0795

disapproval of revision 'c9ca4d2dd194ca90f6c34468efd8ad100e7a65b1'
author Andreas Monitzer <pidgin@monitzer.com>
date Wed, 11 Jul 2007 15:57:14 +0000
parents ca20c706ee50
children 8d2ea5072f6f 7fd8bd8594fe
files libpurple/util.c
diffstat 1 files changed, 0 insertions(+), 41 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Tue Jul 10 12:06:41 2007 +0000
+++ b/libpurple/util.c	Wed Jul 11 15:57:14 2007 +0000
@@ -1428,47 +1428,6 @@
 					xhtml = g_string_append(xhtml, "<span style='vertical-align:super;'>");
 					continue;
 				}
-				if(!g_ascii_strncasecmp(c, "<img", 4) && (*(c+4) == '>' || *(c+4) == ' ')) {
-					const char *p = c;
-					GString *src = NULL, *alt = NULL;
-					while(*p && *p != '>') {
-						if(!g_ascii_strncasecmp(p, "src=", strlen("src="))) {
-							const char *q = p + strlen("src=");
-							src = g_string_new("");
-							if(*q == '\'' || *q == '\"')
-								q++;
-							while(*q && *q != '\"' && *q != '\'' && *q != ' ') {
-								src = g_string_append_c(src, *q);
-								q++;
-							}
-							p = q;
-						} else if(!g_ascii_strncasecmp(p, "alt=", strlen("alt="))) {
-							const char *q = p + strlen("alt=");
-							alt = g_string_new("");
-							if(*q == '\'' || *q == '\"')
-								q++;
-							while(*q && *q != '\"' && *q != '\'' && *q != ' ') {
-								alt = g_string_append_c(alt, *q);
-								q++;
-							}
-							p = q;
-						}
-						p++;
-					}
-					if ((c = strchr(c, '>')) != NULL)
-						c++;
-					else
-						c = p;
-					/* src and alt are required! */
-					if(src && alt)
-						g_string_append_printf(xhtml, "<img src='%s' alt='%s' />", g_strstrip(src->str), alt->str);
-					if(alt) {
-						plain = g_string_append(plain, alt->str);
-						if(!src)
-							xhtml = g_string_append(xhtml, alt->str);
-					}
-					continue;
-				}
 				if(!g_ascii_strncasecmp(c, "<a", 2) && (*(c+2) == '>' || *(c+2) == ' ')) {
 					const char *p = c;
 					struct purple_parse_tag *pt;