diff options
author | David Lawrence <dlawrence@mozilla.com> | 2011-10-24 23:01:42 +0200 |
---|---|---|
committer | David Lawrence <dlawrence@mozilla.com> | 2011-10-24 23:01:42 +0200 |
commit | b8a81e876126a327dccaf6a5694bbab295c5296a (patch) | |
tree | 9173644a66ccfc45608ec972f01831c3860d4991 /extensions/TypeSniffer | |
parent | 3fa19c4c0f396ffe3a048ce6cbbd04c6e8bca6d0 (diff) | |
download | bugzilla-b8a81e876126a327dccaf6a5694bbab295c5296a.tar.gz bugzilla-b8a81e876126a327dccaf6a5694bbab295c5296a.tar.xz |
Bug 696272 - Amend form.reps.swag form results
r=glob
Diffstat (limited to 'extensions/TypeSniffer')
-rw-r--r-- | extensions/TypeSniffer/Extension.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/TypeSniffer/Extension.pm b/extensions/TypeSniffer/Extension.pm index fcd4f7dd6..49488c9ad 100644 --- a/extensions/TypeSniffer/Extension.pm +++ b/extensions/TypeSniffer/Extension.pm @@ -39,7 +39,8 @@ sub attachment_process_data { # If we have autodetected application/octet-stream from the Content-Type # header, let's have a better go using a sniffer. - if ($params->{'contenttypemethod'} eq 'autodetect' && + if ($params->{'contenttypemethod'} && + $params->{'contenttypemethod'} eq 'autodetect' && $attributes->{'mimetype'} eq 'application/octet-stream') { # data is either a filehandle, or the data itself |