[evolution-data-server] Bug #623795 - URI at the end of text isn't clickable
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #623795 - URI at the end of text isn't clickable
- Date: Thu, 8 Jul 2010 19:22:54 +0000 (UTC)
commit 341cd233218f2344aff4ec3ceb1a175d95c41b37
Author: Milan Crha <mcrha redhat com>
Date: Thu Jul 8 21:22:33 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 bf96d04..85e31b7 100644
--- a/camel/camel-mime-filter-tohtml.c
+++ b/camel/camel-mime-filter-tohtml.c
@@ -311,7 +311,7 @@ html_convert (CamelMimeFilter *mime_filter,
len = inptr - start;
do {
- if (camel_url_scanner_scan (priv->scanner, start, len, &match)) {
+ if (camel_url_scanner_scan (priv->scanner, start, len - (len > 0 && start[len - 1] == 0 ? 1 : 0), &match)) {
/* write out anything before the first regex match */
outptr = writeln (mime_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]