changeset 10459:bbe937302b47

[gaim-migrate @ 11729] Fix for bug 1013543 - don't be so greedy in linkifying trailing quotes in URLs committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Fri, 31 Dec 2004 13:16:45 +0000
parents ad9258716144
children 83cfcb52d93b
files src/util.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Fri Dec 31 05:42:26 2004 +0000
+++ b/src/util.c	Fri Dec 31 13:16:45 2004 +0000
@@ -1448,6 +1448,8 @@
 					if ((*(t - 1) == ')' && (inside_paren > 0))) {
 						t--;
 					}
+					if (!g_ascii_strncasecmp(t - 6, "&quot;", 6))
+						t -= 6;
 					strncpy(url_buf, c, t - c);
 					url_buf[t - c] = 0;
 					tmpurlbuf = gaim_unescape_html(url_buf);