summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-07-08 21:22:59 +0200
committerMilan Crha <mcrha@redhat.com>2010-07-08 21:22:59 +0200
commitf6e680f9333b02f64d486994e9c55d61967ce6b8 (patch)
tree95607c60e87b9e94e9945a7ec51ecc9f2eea6dda
parent531766b6deed5285092c729b12bbe2cd53f399ed (diff)
downloadevolution-data-server-f6e680f9333b02f64d486994e9c55d61967ce6b8.tar.gz
Bug #623795 - URI at the end of text isn't clickable
-rw-r--r--camel/camel-mime-filter-tohtml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-mime-filter-tohtml.c b/camel/camel-mime-filter-tohtml.c
index 93e7be9e2..94b15ec35 100644
--- a/camel/camel-mime-filter-tohtml.c
+++ b/camel/camel-mime-filter-tohtml.c
@@ -317,7 +317,7 @@ html_convert (CamelMimeFilter *filter, const gchar *in, gsize inlen, gsize presp
len = inptr - start;
do {
- if (camel_url_scanner_scan (html->scanner, start, len, &match)) {
+ if (camel_url_scanner_scan (html->scanner, start, len - (len > 0 && start[len - 1] == 0 ? 1 : 0), &match)) {
/* write out anything before the first regex match */
outptr = writeln (filter, (const guchar *)start, (const guchar *)start + match.um_so,
outptr, &outend);