Skip to content

Commit

Permalink
Make sure to encode ascii control characters
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Mar 10, 2023
1 parent aee6224 commit 81261fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/utils/decomposedfs/metadata/ini_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func needsEncoding(s []byte) bool {
}

for i := 0; i < len(s); i++ {
if s[i] > unicode.MaxASCII {
if s[i] < 32 || s[i] >= unicode.MaxASCII { // ASCII 127 = Del - we don't want that
return true
}
}
Expand Down

0 comments on commit 81261fe

Please sign in to comment.