aboutsummaryrefslogtreecommitdiffstats
path: root/HTMLparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'HTMLparser.c')
-rw-r--r--HTMLparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/HTMLparser.c b/HTMLparser.c
index 24186a24..57fca745 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -2631,9 +2631,9 @@ htmlParsePubidLiteral(htmlParserCtxtPtr ctxt) {
} else if (CUR == '\'') {
NEXT;
q = CUR_PTR;
- while ((IS_LETTER(CUR)) && (CUR != '\''))
+ while ((IS_PUBIDCHAR(CUR)) && (CUR != '\''))
NEXT;
- if (!IS_LETTER(CUR)) {
+ if (CUR != '\'') {
if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
ctxt->sax->error(ctxt->userData, "Unfinished PubidLiteral\n");
ctxt->wellFormed = 0;