# HG changeset patch # User Sadrul Habib Chowdhury # Date 1233755834 0 # Node ID fabd8eda763da961d8118200f52a7ecfb655f61a # Parent f03d0745c2c2f9a06cccff367f0a087b4076d3fe Do not linkify unless is followed by some non-whitespace string. diff -r f03d0745c2c2 -r fabd8eda763d pidgin/gtkimhtml.c --- 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);