relax filetype checks for key upload
add gpg setting to example configuration file
This commit is contained in:
parent
0fbf98d850
commit
4c11dfd145
2 changed files with 5 additions and 1 deletions
|
@ -122,3 +122,7 @@ $HTML_CSS_COLOR = "/ezmlm-web/color-red-blue.css";
|
|||
# setting individually
|
||||
$HTML_LANGUAGE = "en";
|
||||
|
||||
# turn support for encrypted mailing lists on or off - defaults to 0 (off)
|
||||
# see https://systemausfall.org/toolforge/gpgpy-ezmlm for details
|
||||
#$GPG_SUPPORT = 0;
|
||||
|
||||
|
|
|
@ -1926,7 +1926,7 @@ sub gnupg_import_key {
|
|||
# Sanity check
|
||||
my $fileinfo = $q->uploadInfo($upload_file);
|
||||
my $filetype = $fileinfo->{'Content-Type'};
|
||||
unless($filetype =~ m{^text/}i) {
|
||||
unless (($filetype =~ m{^text/}i) || ($filetype eq 'application/pgp-encrypted')) {
|
||||
$warning = 'InvalidFileFormat';
|
||||
warn "[ezmlm-web] mime type of uploaded file rejected: $filetype";
|
||||
return (1==0);
|
||||
|
|
Loading…
Reference in a new issue