Allow '&' and disallow ':' in Windows filenames.

Fixes #161
This commit is contained in:
klauspost 2015-10-05 11:04:25 +02:00
parent 3a900e5bb7
commit ab9f521cbd

View File

@ -178,7 +178,7 @@ func (f *FsLocal) cleanUtf8(name string) string {
}
name2 += strings.Map(func(r rune) rune {
switch r {
case '<', '>', '"', '|', '?', '*', '&':
case '<', '>', '"', '|', '?', '*', ':':
return '_'
}
return r