Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
What changed in WittyModule, newest first. What changed before it had a repository of its own is in the
[WittyMediaServer changelog](https://github.com/wittywilla/WittyMediaServer/blob/master/CHANGELOG.md).

## Unreleased
## 0.5.6

- **WittyModule 0.5.6:** Store and manifest text refuse hidden control and direction characters, and a module's name is checked like the rest. Fuzz tests for the catalogue, manifests, withdrawals and integration files.
- **Safer store text:** names, descriptions and other store and manifest text refuse hidden control and direction characters, and a module's name is checked like the rest.

## Developer notes for 0.5.6

- Fuzz tests for the catalogue, manifests, withdrawals and integration files.
- The unused `keysOf` is gone from `integration.go` (staticcheck U1000).

## 0.5.5

Expand Down
9 changes: 0 additions & 9 deletions integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,15 +586,6 @@ func (in *Integration) Validate(m *Manifest) error {
return errors.New(strings.Join(lines, "\n"))
}

func keysOf(m map[string]bool) []string {
ks := make([]string, 0, len(m))
for k := range m {
ks = append(ks, k)
}
slices.Sort(ks)
return ks
}

// ParseSize reads "256KB", "4MB".
func ParseSize(s string) (int64, error) {
m := sizeExpr.FindStringSubmatch(s)
Expand Down