diff --git a/storage/storage.go b/storage/storage.go index da94729e..cff4ddd5 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -390,7 +390,8 @@ func SeparateModTarget(ctx context.Context, body []byte, modID, name, modVersion continue } - err = copyModFileToArchZip(file, zipWriter, strings.TrimPrefix(file.Name, target+"/")) + encodedFileName := EncodeName(strings.TrimPrefix(file.Name, target+"/")) + err = copyModFileToArchZip(file, zipWriter, encodedFileName) if err != nil { log.Err(err).Msg("failed to add file to " + target + " archive")