Merge pull request #3815 from cp2004/fix/language-pack-upload
This commit is contained in:
1 file changed
+4
-2
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user