]> sjero.net Git - wget/commitdiff
Fix condition for closed HTML tag.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 31 May 2010 15:29:05 +0000 (17:29 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 31 May 2010 15:29:05 +0000 (17:29 +0200)
src/ChangeLog
src/html-parse.c

index bf68aa09963757335e9846f93f4e2f306a92583f..f91a2f56a6541f2258c4012a6d8e830bb45d1139 100644 (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>
 
        * sysdep.h (_SVID_SOURCE): Remove definition.
index 4cd86b93e0ae610b22feb243e1180175faf40333..7deeedf56e1407e61ed4cf875d44602bd85db17f 100644 (file)
@@ -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;
           }