changeset 17907:8d2ea5072f6f

merge of '56282c0e590e48f68f48934e6d0fe5bb4ecd518b' and '71ed79a95ae8fc95aafeebbea64a8adcf4db8bfd'
author Andreas Monitzer <pidgin@monitzer.com>
date Wed, 11 Jul 2007 15:59:09 +0000
parents 692057170584 (current diff) ba48f21e0795 (diff)
children 5c1ed6296b56
files libpurple/util.c
diffstat 1 files changed, 0 insertions(+), 41 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Wed Jul 11 15:59:08 2007 +0000
+++ b/libpurple/util.c	Wed Jul 11 15:59:09 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;