Better handling of empty charset in meta tag.

git-svn: trunk@2901
This commit is contained in:
Török Edvin
2007-03-03 23:00:14 +00:00
parent 884f536d88
commit 6b53b2341d
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
Fri Mar 2 23:05:00 CET 2007 (edwin)
----------------------------------
* libclamav/htmlnorm.c: Better handling for empty charset in meta tag.
Fri Mar 2 19:16:19 GMT 2007 (njh)
----------------------------------
* libclamav/mbox.c: Fix bug 255

View File

@@ -979,7 +979,8 @@ static int cli_html_normalise(int fd, m_area_t *m_area, const char *dirname, tag
if(charset) {
while(*charset && *charset != '=')
charset++;
charset++;/* skip = */
if(*charset)
charset++;/* skip = */
len = strcspn((const char*)charset," \"'");
charset[len] = '\0';
if(len)