fix for Bug 318697[gtkhtml]

Rohini <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <[email protected]>
Hi

Attached fix for Bug 318697 – Auto email-link creation causing rendering
error (extra character)

Please Review.

Thanks,
Rohini

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
bug318697.diff (text/x-patch, 1.3 KB)
Index: camel-url-scanner.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/camel-url-scanner.c,v
retrieving revision 1.19
diff -u -p -r1.19 camel-url-scanner.c
--- camel-url-scanner.c	6 Dec 2005 04:21:55 -0000	1.19
+++ camel-url-scanner.c	10 Feb 2006 13:31:21 -0000
@@ -197,7 +197,8 @@ camel_url_addrspec_start (const char *in
 	
 	g_assert (*inptr == '@');
 	
-	inptr--;
+	if (inptr > in)
+		inptr--;
 	
 	while (inptr > in) {
 		if (is_atom (*inptr))
@@ -215,7 +216,7 @@ camel_url_addrspec_start (const char *in
 	if (!is_atom (*inptr) || is_open_brace (*inptr))
 		inptr++;
 	
-	if (inptr == pos)
+	if (inptr >= pos)
 		return FALSE;
 	
 	match->um_so = (inptr - in);
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/camel/ChangeLog,v
retrieving revision 1.2521
diff -u -p -r1.2521 ChangeLog
--- ChangeLog	2 Feb 2006 08:37:46 -0000	1.2521
+++ ChangeLog	10 Feb 2006 13:35:35 -0000
@@ -1,3 +1,9 @@
+2006-02-10  Rohini S  <[email protected]>
+
+	** See bug 318697
+	* camel-url-scanner.c (camel_url_addrspec_start): conditions modified
+	to parse only valid mailto links
+
 2006-02-02  Parthasarathi Susarla <[email protected]>
 	
 	** See bug 328481
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.