]> ruderich.org/simon Gitweb - safcm/safcm.git/commit
safcm: strip invalid characters from detected os/arch groups
authorSimon Ruderich <simon@ruderich.org>
Sun, 9 May 2021 09:36:44 +0000 (11:36 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 9 May 2021 10:22:02 +0000 (12:22 +0200)
commitda47b542155706887750f8a0338f8cd2ced654a6
tree992257f7fbff9c4d35c76c82cce36c7b196f9fb4
parent5d6cc7f14a4bacc36bf3a23cd735a75ad4a90f1d
safcm: strip invalid characters from detected os/arch groups

Handle them like any other detected group because the remote can send
invalid values. The current code can handle arbitrary group names just
fine but it's better to treat all untrusted input the same.
cmd/safcm/sync_info.go
cmd/safcm/sync_info_test.go