comparison src/util.c @ 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 9903182f2aac
children e94802fe3eaf
comparison
equal deleted inserted replaced
10458:ad9258716144 10459:bbe937302b47
1446 if (*(t - 1) == '.') 1446 if (*(t - 1) == '.')
1447 t--; 1447 t--;
1448 if ((*(t - 1) == ')' && (inside_paren > 0))) { 1448 if ((*(t - 1) == ')' && (inside_paren > 0))) {
1449 t--; 1449 t--;
1450 } 1450 }
1451 if (!g_ascii_strncasecmp(t - 6, "&quot;", 6))
1452 t -= 6;
1451 strncpy(url_buf, c, t - c); 1453 strncpy(url_buf, c, t - c);
1452 url_buf[t - c] = 0; 1454 url_buf[t - c] = 0;
1453 tmpurlbuf = gaim_unescape_html(url_buf); 1455 tmpurlbuf = gaim_unescape_html(url_buf);
1454 g_string_append_printf(ret, "<A HREF=\"%s\">%s</A>", 1456 g_string_append_printf(ret, "<A HREF=\"%s\">%s</A>",
1455 tmpurlbuf, url_buf); 1457 tmpurlbuf, url_buf);