Mercurial > pidgin
changeset 27295:d4c6d2c6fb03
Fix purple_markup_unescape_entity to properly consume '\' and similar.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 04 Jul 2009 17:17:59 +0000 |
parents | cbd67b8bf3ca |
children | c0b4ab2f4b9f |
files | libpurple/util.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/util.c Sat Jul 04 05:17:11 2009 +0000 +++ b/libpurple/util.c Sat Jul 04 17:17:59 2009 +0000 @@ -979,8 +979,8 @@ buf[buflen] = '\0'; pln = buf; - len = 2; - while(isdigit((gint) text[len])) len++; + len = (*(text+2) == 'x' ? 3 : 2); + while(isxdigit((gint) text[len])) len++; if(text[len] == ';') len++; } else