diff options
author | Milan Crha <mcrha@redhat.com> | 2010-07-08 21:22:59 +0200 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-07-08 21:22:59 +0200 |
commit | f6e680f9333b02f64d486994e9c55d61967ce6b8 (patch) | |
tree | 95607c60e87b9e94e9945a7ec51ecc9f2eea6dda | |
parent | 531766b6deed5285092c729b12bbe2cd53f399ed (diff) | |
download | evolution-data-server-f6e680f9333b02f64d486994e9c55d61967ce6b8.tar.gz |
Bug #623795 - URI at the end of text isn't clickable
-rw-r--r-- | camel/camel-mime-filter-tohtml.c | 2 |
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); |