pidgin: 0fc44e2e: According to RFC 1738, "'" is a valid ch...

sadrul at pidgin.im sadrul at pidgin.im
Sat May 16 14:35:33 EDT 2009


-----------------------------------------------------------------
Revision: 0fc44e2e9b4c3867ea189f9705f637125cb2497c
Ancestor: efd2cab15f62069c9bcf7c599b2818fc7ac7703a
Author: sadrul at pidgin.im
Date: 2009-05-16T18:37:14
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/0fc44e2e9b4c3867ea189f9705f637125cb2497c

Modified files:
        libpurple/util.c

ChangeLog: 

According to RFC 1738, "'" is a valid character in a URL.

Thanks to the patch by shreevatsa. Closes #1310.

-------------- next part --------------
============================================================
--- libpurple/util.c	8c4e4787d5558dbb66ce2d53c3d42c468b95e4bf
+++ libpurple/util.c	150de04fc6eed724c9daa81ce1f34ca58ed2c5a0
@@ -1623,7 +1623,7 @@ purple_markup_html_to_xhtml(const char *
 					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 @@ badchar(char c)
 	case '<':
 	case '>':
 	case '"':
-	case '\'':
 		return TRUE;
 	default:
 		return FALSE;


More information about the Commits mailing list