Bug 40933
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@643 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
25ce0ade93
commit
a702ff08d7
|
@ -681,7 +681,8 @@ sub validate_content_type {
|
|||
LWP::MediaTypes::read_media_types(Bugzilla->params->{mime_types_file});
|
||||
$lwp_read_mime_types = 1;
|
||||
}
|
||||
$contenttype = LWP::MediaTypes::guess_media_type($cgi->param('data'));
|
||||
my $file = $cgi->param('data');
|
||||
$contenttype = LWP::MediaTypes::guess_media_type("$file");
|
||||
}
|
||||
if (!valid_content_type($contenttype))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue