From af616a73865c9aa7e9e56368ec0d0ac4c376b0b0 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Tue, 17 Oct 2006 20:18:39 +0000 Subject: [PATCH] fix one problem found in htmlCtxtUseOptions() and pointed in #340591 * HTMLparser.c: fix one problem found in htmlCtxtUseOptions() and pointed in #340591 Daniel --- ChangeLog | 5 +++++ HTMLparser.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 49a57d8f..924e5c95 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Oct 17 22:19:02 CEST 2006 Daniel Veillard + + * HTMLparser.c: fix one problem found in htmlCtxtUseOptions() + and pointed in #340591 + Tue Oct 17 22:04:31 CEST 2006 Daniel Veillard * HTMLparser.c: fixed teh 2 stupid bugs affecting htmlReadDoc() and diff --git a/HTMLparser.c b/HTMLparser.c index aac2a78f..5e23ad72 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -5864,6 +5864,7 @@ htmlCtxtUseOptions(htmlParserCtxtPtr ctxt, int options) ctxt->keepBlanks = 1; if (options & HTML_PARSE_RECOVER) { ctxt->recovery = 1; + options -= HTML_PARSE_RECOVER; } else ctxt->recovery = 0; if (options & HTML_PARSE_COMPACT) {