# HG changeset patch # User Sadrul Habib Chowdhury # Date 1238950449 0 # Node ID 8e594c4cdae40798a5faf485cf0596d68752aa40 # Parent 4ecb1cc48e3ce6f16819787cf1cb19623c088b42 Fix the auto-linking of protocols. This should fix the problem QuLogic noticed with 'irc:' etc. getting linked in the debug window. diff -r 4ecb1cc48e3c -r 8e594c4cdae4 pidgin/gtkimhtml.c --- a/pidgin/gtkimhtml.c Sun Apr 05 11:44:03 2009 +0000 +++ b/pidgin/gtkimhtml.c Sun Apr 05 16:54:09 2009 +0000 @@ -3320,7 +3320,8 @@ pos++; } else if ((pos == 0 || wpos == 0 || isspace(*(c - 1))) && (len_protocol = gtk_imhtml_is_protocol(c)) > 0 && - c[len_protocol] && !isspace(c[len_protocol])) { + c[len_protocol] && !isspace(c[len_protocol]) && + (c[len_protocol] != '<' || !gtk_imhtml_is_tag(c + 1, NULL, NULL, NULL))) { br = FALSE; if (wpos > 0) { gtk_text_buffer_insert(imhtml->text_buffer, iter, ws, wpos);