1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Fix condition for closed HTML tag.

This commit is contained in:
Giuseppe Scrivano 2010-05-31 17:29:05 +02:00
parent f747e73445
commit e9e09e1cc0
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-05-31 Giuseppe Scrivano <gscrivano@gnu.org>
* html-parse.c (map_html_tags): Fix condition for closed tag. Handle
the case '>' is not specified after '/'.
2010-05-31 Giuseppe Scrivano <gscrivano@gnu.org> 2010-05-31 Giuseppe Scrivano <gscrivano@gnu.org>
* sysdep.h (_SVID_SOURCE): Remove definition. * sysdep.h (_SVID_SOURCE): Remove definition.

View File

@ -960,7 +960,7 @@ map_html_tags (const char *text, int size,
/* ^ */ /* ^ */
ADVANCE (p); ADVANCE (p);
SKIP_WS (p); SKIP_WS (p);
if (*p != '<' || *p != '>') if (*p != '<' && *p != '>')
goto backout_tag; goto backout_tag;
} }