[evolution-data-server/gnome-2-30] Bug #623795 - URI at the end of text isn't clickable



commit f6e680f9333b02f64d486994e9c55d61967ce6b8
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jul 8 21:22:59 2010 +0200

    Bug #623795 - URI at the end of text isn't clickable

 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 93e7be9..94b15ec 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]