Browse code

more improvements to script end tag detection

git-svn: trunk@3684

Török Edvin authored on 2008/02/28 03:51:00
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Feb 27 19:53:18 EET 2008 (edwin)
2
+-----------------------------------
3
+  * libclamav/htmlnorm.c: more improvements to script end tag detection
4
+
1 5
 Wed Feb 27 16:42:27 CET 2008 (tk)
2 6
 ---------------------------------
3 7
   * libclamav/cab.c: fix handling of stored files
... ...
@@ -726,7 +726,7 @@ static int cli_html_normalise(int fd, m_area_t *m_area, const char *dirname, tag
726 726
 					state = HTML_SKIP_WS;
727 727
 					tag_arg_length = 0;
728 728
 					/* if we'd go to HTML_TAG_ARG whitespace would be inconsistently normalized for in_script*/
729
-					next_state = !in_script ? HTML_TAG_ARG : HTML_NORM;
729
+					next_state = !in_script ? HTML_TAG_ARG : HTML_PROCESS_TAG;
730 730
 				}
731 731
 				break;
732 732
 			case HTML_TAG_ARG: