summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2014-09-09 04:00:36 +0200
committerVicent Marti <tanoku@gmail.com>2014-09-09 04:00:36 +0200
commit9d86d2f32303ae0048f6a5daa552bacceb9b12ea (patch)
tree96a8cb5e53aa166044cd27091d1d5d4468c077bc /src
parentd21ef7b5db11075e038e60732682dfd8a5cf6a13 (diff)
Update the spec with better entity handling
Diffstat (limited to 'src')
-rw-r--r--src/html/houdini_html_u.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/houdini_html_u.c b/src/html/houdini_html_u.c
index 762f980..b8e2d8d 100644
--- a/src/html/houdini_html_u.c
+++ b/src/html/houdini_html_u.c
@@ -24,7 +24,7 @@ houdini_unescape_ent(strbuf *ob, const uint8_t *src, size_t size)
codepoint = (codepoint * 16) + ((src[i] | 32) % 39 - 9);
}
- if (i < size && src[i] == ';') {
+ if (i < size && src[i] == ';' && codepoint) {
utf8proc_encode_char(codepoint, ob);
return i + 1;
}