Browse code

Better handling of empty charset in meta tag.

git-svn: trunk@2901

Török Edvin authored on 2007/03/04 08:00:14
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Fri Mar  2 23:05:00 CET 2007 (edwin)
2
+----------------------------------
3
+  * libclamav/htmlnorm.c: Better handling for empty charset in meta tag.
4
+
1 5
 Fri Mar  2 19:16:19 GMT 2007 (njh)
2 6
 ----------------------------------
3 7
   * libclamav/mbox.c:	Fix bug 255
... ...
@@ -979,7 +979,8 @@ static int cli_html_normalise(int fd, m_area_t *m_area, const char *dirname, tag
979 979
 						if(charset) {							
980 980
 							while(*charset && *charset != '=')
981 981
 								charset++;
982
-							charset++;/* skip = */
982
+							if(*charset)
983
+								charset++;/* skip = */
983 984
 							len = strcspn((const char*)charset," \"'");
984 985
 							charset[len] = '\0';
985 986
 							if(len)