# HG changeset patch # User Sadrul Habib Chowdhury # Date 1228238094 0 # Node ID c6f7143cc7f4d41c45f72ac2ba5e656189621bcd # Parent b6f2c637a3d9393c6d7a49e2b294750025ae5e69 Only find URLs on word boundaries to fix a bug rlaager noticed. committer: Richard Laager diff -r b6f2c637a3d9 -r c6f7143cc7f4 pidgin/gtkimhtml.c --- a/pidgin/gtkimhtml.c Mon Dec 01 19:44:13 2008 +0000 +++ b/pidgin/gtkimhtml.c Tue Dec 02 17:14:54 2008 +0000 @@ -3302,7 +3302,8 @@ } c++; pos++; - } else if ((len_protocol = gtk_imhtml_is_protocol(c)) > 0){ + } else if ((pos == 0 || wpos == 0 || isspace(*(c - 1))) && + (len_protocol = gtk_imhtml_is_protocol(c)) > 0) { br = FALSE; if (wpos > 0) { gtk_text_buffer_insert(imhtml->text_buffer, iter, ws, wpos);