mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-10 20:56:14 +00:00
Follow-up to the Copilot Autofix commit for the reflected-XSS finding. - fakespeaker buildAddGroupResponse: the autofix modelled only name/master/slave, dropping the posted masterDeviceId, roles, id, and senderIPAddress that the client (pkg/models.Group) actually sends and TestFakeSpeakerAddGroupEchoesWithGroupOK expects to survive the echo. Parse into the canonical models.Group and re-marshal it, so values stay XML-escaped (CodeQL-clean) and the fake can't drift from the real request schema. Updates the now-stale doc comment. - marge ProviderSettingsToXML / fakespeaker: satisfy golangci-lint (wsl_v5 cuddled type decls, gofmt trailing blank lines) the autofix left behind. make lint clean; marge, handlers, and fakespeaker suites pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>