Fix typo in mime type redefinition.

This commit is contained in:
Darold Gilles 2016-01-28 10:22:47 +01:00
parent 06a01f5141
commit 0cd8aeb8a4
1 changed files with 2 additions and 2 deletions

View File

@ -1240,7 +1240,7 @@ sub _parse_file_part
}
# Some site has corrupted mime_type, try to remove nasty characters
if ($mime_type =~ s/[^\-\/\.\(\)\+\_,\=a-z0-9]+//igs) {
$mime_type = 'invalide/type';
$mime_type = 'invalid/type';
}
} elsif ($line =~ $sg_format_regex1) {
$format = 'squidguard';
@ -1345,7 +1345,7 @@ sub _parse_file_part
$mime_type = lc($4);
# Some site has corrupted mime_type, try to remove nasty characters
if ($mime_type =~ s/[^\-\/\.\(\)\+\_,\=a-z0-9]+//igs) {
$mime_type = 'invalide/type';
$mime_type = 'invalid/type';
}
}