From 1f6dfac83e8325a42dc5faa2e31cc25593acdfc8 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 30 Jun 2024 09:59:48 +0200 Subject: improve parsing whitespace after end tag names Simplified test-case: https://git.codemadness.org/sfeed_tests/commit/e091160c3125322193bd8f27691c87eaa48cfc93.html --- xml.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xml.c b/xml.c index 1524d1f..35b7961 100644 --- a/xml.c +++ b/xml.c @@ -333,6 +333,8 @@ xml_parse(XMLParser *x) else if (c == '>' || ISSPACE(c)) { x->tag[x->taglen] = '\0'; if (isend) { /* end tag, starts with ' && c != EOF) /* skip until > */ + c = GETNEXT(); if (x->xmltagend) x->xmltagend(x, x->tag, x->taglen, x->isshorttag); x->tag[0] = '\0'; -- cgit v1.2.3