Diff

spec/scansion/prosody.cfg.lua @ 11315:c52fcea39c8e

mod_http_file_share: Add file type filter Unlike mod_http_upload, this can't be bypassed by uploading with a different file extension.
author Kim Alvefur <zash@zash.se>
date Tue, 26 Jan 2021 14:53:43 +0100
parent 11314:7c8b02c5a335
child 11583:4ee7a6a8753e
line wrap: on
line diff
--- a/spec/scansion/prosody.cfg.lua	Tue Jan 26 14:53:24 2021 +0100
+++ b/spec/scansion/prosody.cfg.lua	Tue Jan 26 14:53:43 2021 +0100
@@ -134,3 +134,4 @@
 
 Component "upload.localhost" "http_file_share"
 http_file_share_size_limit = 10000000
+http_file_share_allowed_file_types = { "text/plain", "image/*" }