浏览代码

File extension bans

`.nt` - turns out there's more Windows batch file extensions.
`.psm1` - PowerScript extension.
`.bash`, `.bsh`, `.csh`, `.bash_profile`, `.bashrc`, `.profile` - apparently those are valid bash script extensions.
`.reg` - overwrites Windows registry keys upon execution.
Shumatsu 6 年之前
父节点
当前提交
df6d5459e0
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. 10 1
      config.sample.js

+ 10 - 1
config.sample.js

@@ -41,9 +41,18 @@ module.exports = {
 		'.com',
 		'.bat',
 		'.cmd',
+		'.nt',
 		'.scr',
 		'.ps1',
-		'.sh'
+		'.psm1',
+		'.sh',
+		'.bash',
+		'.bsh',
+		'.csh',
+		'.bash_profile',
+		'.bashrc',
+		'.profile',
+		'.reg'
 	],
 
 	// Uploads config