diff pidgin/gtkimhtml.c @ 25944:fabd8eda763d

Do not linkify unless <proto> is followed by some non-whitespace string.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 04 Feb 2009 13:57:14 +0000
parents e0572c12265a
children 8e594c4cdae4
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c	Tue Feb 03 00:45:21 2009 +0000
+++ b/pidgin/gtkimhtml.c	Wed Feb 04 13:57:14 2009 +0000
@@ -3319,7 +3319,8 @@
 			c++;
 			pos++;
 		} else if ((pos == 0 || wpos == 0 || isspace(*(c - 1))) &&
-		           (len_protocol = gtk_imhtml_is_protocol(c)) > 0) {
+		           (len_protocol = gtk_imhtml_is_protocol(c)) > 0 &&
+				   c[len_protocol] && !isspace(c[len_protocol])) {
 			br = FALSE;
 			if (wpos > 0) {
 				gtk_text_buffer_insert(imhtml->text_buffer, iter, ws, wpos);