From 277b9c5d500c0168a4cffc96f708ed33649a2c18 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 17 Oct 2017 16:32:26 +0100 Subject: [PATCH 1/2] ignore .git directories in uploads --- services/web/app/coffee/Features/Uploads/FileTypeManager.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/app/coffee/Features/Uploads/FileTypeManager.coffee b/services/web/app/coffee/Features/Uploads/FileTypeManager.coffee index 2e22ed5665..40c6e126de 100644 --- a/services/web/app/coffee/Features/Uploads/FileTypeManager.coffee +++ b/services/web/app/coffee/Features/Uploads/FileTypeManager.coffee @@ -18,6 +18,7 @@ module.exports = FileTypeManager = IGNORE_FILENAMES : [ "__MACOSX" + ".git" ] MAX_TEXT_FILE_SIZE: 1 * 1024 * 1024 # 1 MB From 290361dc723fbc088c5b1c1a2f8db0001f770a18 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 17 Oct 2017 16:49:51 +0100 Subject: [PATCH 2/2] ignore .gitignore files in uploads too --- services/web/app/coffee/Features/Uploads/FileTypeManager.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/app/coffee/Features/Uploads/FileTypeManager.coffee b/services/web/app/coffee/Features/Uploads/FileTypeManager.coffee index 40c6e126de..918f66df7b 100644 --- a/services/web/app/coffee/Features/Uploads/FileTypeManager.coffee +++ b/services/web/app/coffee/Features/Uploads/FileTypeManager.coffee @@ -19,6 +19,7 @@ module.exports = FileTypeManager = IGNORE_FILENAMES : [ "__MACOSX" ".git" + ".gitignore" ] MAX_TEXT_FILE_SIZE: 1 * 1024 * 1024 # 1 MB