From: Giuseppe Scrivano Date: Mon, 31 May 2010 15:29:05 +0000 (+0200) Subject: Fix condition for closed HTML tag. X-Git-Tag: v1.13~151 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=e9e09e1cc03a1ba8228c3e11bd2d1d1c6f9a7f3a Fix condition for closed HTML tag. --- diff --git a/src/ChangeLog b/src/ChangeLog index bf68aa09..f91a2f56 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-05-31 Giuseppe Scrivano + + * html-parse.c (map_html_tags): Fix condition for closed tag. Handle + the case '>' is not specified after '/'. + 2010-05-31 Giuseppe Scrivano * sysdep.h (_SVID_SOURCE): Remove definition. diff --git a/src/html-parse.c b/src/html-parse.c index 4cd86b93..7deeedf5 100644 --- a/src/html-parse.c +++ b/src/html-parse.c @@ -960,7 +960,7 @@ map_html_tags (const char *text, int size, /* ^ */ ADVANCE (p); SKIP_WS (p); - if (*p != '<' || *p != '>') + if (*p != '<' && *p != '>') goto backout_tag; }