changeset 26881:795606e2f7c6

According to RFC 1738, "'" is a valid character in a URL. Thanks to the patch by shreevatsa. Closes #1310.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 16 May 2009 18:37:14 +0000
parents 22b87a82755b
children 8c1816137194 5afee99de904
files libpurple/util.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Sat May 16 18:33:55 2009 +0000
+++ b/libpurple/util.c	Sat May 16 18:37:14 2009 +0000
@@ -1623,7 +1623,7 @@
 					pt->dest_tag = "a";
 					tags = g_list_prepend(tags, pt);
 					if(xhtml)
-						g_string_append_printf(xhtml, "<a href='%s'>", url ? g_strstrip(url->str) : "");
+						g_string_append_printf(xhtml, "<a href=\"%s\">", url ? g_strstrip(url->str) : "");
 					continue;
 				}
 				if(!g_ascii_strncasecmp(c, "<font", 5) && (*(c+5) == '>' || *(c+5) == ' ')) {
@@ -2017,7 +2017,6 @@
 	case '<':
 	case '>':
 	case '"':
-	case '\'':
 		return TRUE;
 	default:
 		return FALSE;