Don't allow group names to start with a period.

This commit is contained in:
Juliusz Chroboczek committed 2021-10-28 20:01:11 +02:00
1 parent d440cdf898
commit 8c21ede9d2
3 files changed
+11 -2

No files matched your search

+4
View File
@@ -262,6 +262,10 @@ func parseGroupName(prefix string, p string) string {
return ""
}
if name[0] == '.' {
return ""
}
if filepath.Separator != '/' &&
strings.ContainsRune(name, filepath.Separator) {
return ""