Hi,
method 'checktype_contents' is missing to check for one pattern to find
'text/html' file type. method 'checktype_contents' checks for the
following pattern match with data.
if ($data =~ m[^\<\!DOCTYPE\ HTML]) {
return q{text/html};
}
if ($data =~ m[^\<\!doctype\ html]) {
return q{text/html};
}
if ($data =~ m[^\<HEAD]) {
return q{text/html};
}
if ($data =~ m[^\<head]) {
return q{text/html};
}
if ($data =~ m[^\<TITLE]) {
return q{text/html};
}
if ($data =~ m[^\<title]) {
return q{text/html};
}
if ($data =~ m[^\<html]) {
return q{text/html};
}
if ($data =~ m[^\<HTML]) {
return q{text/html};
}
which is missing the below mentioned pattern
$data =~ m[^\<\!DOCTYPE\ html]
some html file has the above mentioned pattern .can you please add this
pattern .
I have attached the html file which has above mentioned format for your
reference.
Thanks,
Balamurugan krishnam
Subject: | ch.html |
Message body is not shown because it is too large.