Mercurial > pidgin
changeset 26444:8e594c4cdae4
Fix the auto-linking of protocols.
This should fix the problem QuLogic noticed with 'irc:' etc. getting
linked in the debug window.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 05 Apr 2009 16:54:09 +0000 |
parents | 4ecb1cc48e3c |
children | f630747a813d |
files | pidgin/gtkimhtml.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);