mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
check that the w30 app is actually an zip-archive with an index.html
This commit is contained in:
@@ -11,12 +11,19 @@ Content-Type: multipart/mixed; boundary="==BREAK=="
|
||||
Content-Type: text/plain; charset=utf-8
|
||||
|
||||
w30 with good extension;
|
||||
the mimetype is ignored then.
|
||||
the mimetype is ignored then,
|
||||
content is checked.
|
||||
|
||||
--==BREAK==
|
||||
Content-Type: text/html
|
||||
Content-Disposition: attachment; filename=index.w30
|
||||
Content-Disposition: attachment; filename=minimal.w30
|
||||
Content-Transfer-Encoding: base64
|
||||
|
||||
<html>hey!<html>
|
||||
UEsDBBQAAgAIAFJqnVOItjSofAAAALwAAAAKABwAaW5kZXguaHRtbFVUCQADG1LMYV1SzGF1eAsAAQ
|
||||
T1AQAABBQAAACzUXTxdw6JDHBVyCjJzbHjsoFQCgo2SfkplSCGgkJJanGJIphlU5xclFlQAhFWUEjJ
|
||||
Ty7NTc0r0SsvyixJ1VAqyU8EqlTStIYo1kdWbZOXj6o5uiQjsxhodkWJQnFGfmlOikJefolCUiqIV5
|
||||
4XCzUCWZeNPsRNNvoQRwIAUEsBAh4DFAACAAgAUmqdU4i2NKh8AAAAvAAAAAoAGAAAAAAAAQAAAKSB
|
||||
AAAAAGluZGV4Lmh0bWxVVAUAAxtSzGF1eAsAAQT1AQAABBQAAABQSwUGAAAAAAEAAQBQAAAAwAAAAA
|
||||
AA
|
||||
|
||||
--==BREAK==--
|
||||
|
||||
Binary file not shown.
BIN
test-data/w30/no-index-html.w30
Normal file
BIN
test-data/w30/no-index-html.w30
Normal file
Binary file not shown.
BIN
test-data/w30/some-files.w30
Normal file
BIN
test-data/w30/some-files.w30
Normal file
Binary file not shown.
Reference in New Issue
Block a user