1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00

Whitelist all mailso* stream types in snuffleupagus for snappymail

For attachment download in snappymail to work, at least mailsoliteral is
needed. The additionally used stream types (from looking at the
snappymail source) have also been added, to ensure compatability with
whatever feature might rely on them ….
This commit is contained in:
Dario Ernst
2023-04-17 14:37:22 +02:00
parent 0dded85c73
commit b0c71559d0
2 changed files with 2 additions and 1 deletions

View File

@@ -0,0 +1 @@
Fix downloading attachments through snappymail.

View File

@@ -25,7 +25,7 @@ sp.readonly_exec.enable();
# PHP has a lot of wrappers, most of them aren't usually useful, you should
# only enable the ones you're using.
sp.wrappers_whitelist.list("file,php,phar,mailsosubstreams");
sp.wrappers_whitelist.list("file,php,phar,mailsosubstreams,mailsoliteral,mailsotempfile,mailsobinary");
# Prevent sloppy comparisons.
sp.sloppy_comparison.enable();