pidgin: 8222e69d: Fix purple_markup_unescape_entity to pro...
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Sat Jul 4 13:20:27 EDT 2009
-----------------------------------------------------------------
Revision: 8222e69d26359ab1a478cc42d25834120aee713b
Ancestor: 5668e3b116ab205b1a3270d6aff7fca0332bccc6
Author: darkrain42 at pidgin.im
Date: 2009-07-04T17:17:59
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8222e69d26359ab1a478cc42d25834120aee713b
Modified files:
libpurple/util.c
ChangeLog:
Fix purple_markup_unescape_entity to properly consume '\' and similar.
-------------- next part --------------
============================================================
--- libpurple/util.c 6c524ce7e757adfc40e5090e94e18a5a759552c7
+++ libpurple/util.c 6b4549c5dd8718339294fe4cd213785046a00e40
@@ -979,8 +979,8 @@ purple_markup_unescape_entity(const char
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
More information about the Commits
mailing list