Merge pull request #3815 from cp2004/fix/language-pack-upload

This commit is contained in:
Gina Häußge authored and GitHub committed 2020-11-16 14:07:37 +01:00
commit d311fb18e0
1 file changed
+4 -2
+4 -2
View File
@@ -140,8 +140,10 @@ def uploadLanguagePack():
upload_name = request.values[input_upload_name]
upload_path = request.values[input_upload_path]
exts = filter(
lambda x: upload_name.lower().endswith(x), (".zip", ".tar.gz", ".tgz", ".tar")
exts = list(
filter(
lambda x: upload_name.lower().endswith(x), (".zip", ".tar.gz", ".tgz", ".tar")
)
)
if not len(exts):
return make_response(