fix: don't use entity data for all tags - grabtitle - stupid HTML title grabber
(HTM) git clone git://git.codemadness.org/grabtitle
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 7d6279c8dec086f01bd2355d15292afa630238a4
(DIR) parent 5c21827b86be877d3d5df7f7a9b810822e4f8e22
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 31 Mar 2018 13:01:57 +0200
fix: don't use entity data for all tags
Diffstat:
M title.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/title.c b/title.c
@@ -53,6 +53,9 @@ xmldataentity(XMLParser *p, const char *d, size_t dl)
{
char buf[16];
+ if (!istitle)
+ return;
+
if (xml_entitytostr(d, buf, sizeof(buf))) {
d = buf;
dl = strlen(buf);