Skip to content

Fix command auth escaping for apostrophes#298

Merged
enaboapps merged 1 commit into
mainfrom
fix/auth-apostrophe-297
Jun 30, 2026
Merged

Fix command auth escaping for apostrophes#298
enaboapps merged 1 commit into
mainfrom
fix/auth-apostrophe-297

Conversation

@enaboapps

Copy link
Copy Markdown
Contributor

Summary

  • align C# command-auth canonical JSON string escaping with Android/JSON.stringify behavior
  • fix apostrophe payload auth by avoiding System.Text.Json default \u0027 escaping in canonical strings
  • add regression coverage for apostrophe, backslash, and HTML-sensitive text payloads

Closes #297.

Validation

  • dotnet test src\SwitchifyPc.Tests\SwitchifyPc.Tests.csproj -c Release --filter FullyQualifiedName~CommandAuthTests
  • dotnet restore src\SwitchifyPc.sln
  • dotnet build src\SwitchifyPc.sln -c Release --no-restore
  • dotnet test src\SwitchifyPc.sln -c Release --no-build

@enaboapps enaboapps added this to the Release 0.2.0 milestone Jun 30, 2026
@enaboapps enaboapps merged commit f3f397c into main Jun 30, 2026
1 check passed
@enaboapps enaboapps deleted the fix/auth-apostrophe-297 branch June 30, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix command auth escaping for apostrophes

2 participants