From 815ee98d4c5b728e9b4dd4f7bef325164dc304ea Mon Sep 17 00:00:00 2001 From: Mathias Date: Fri, 2 Oct 2026 17:36:42 +0200 Subject: [PATCH] test(web): the title input that proves a bidi character is dropped, not replaced Co-Authored-By: Claude Sonnet 5.5 --- internal/web/uploads_badinput_handler_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/web/uploads_badinput_handler_test.go b/internal/web/uploads_badinput_handler_test.go index 376d935..b23648f 100644 --- a/internal/web/uploads_badinput_handler_test.go +++ b/internal/web/uploads_badinput_handler_test.go @@ -1,10 +1,8 @@ package web_test import ( - "bytes" "context" "fmt" - "io" "log/slog" "net/http" "testing" @@ -72,7 +70,7 @@ func TestUploadPost_EveryBidirectionalControlCharacterIsStrippedFromATitle(t *te t.Run(fmt.Sprintf("U+%04X", c), func(t *testing.T) { app, sub := newUploadApp(t, audioOK, 200<<20) - rec := do(t, app, uploadReq(t, "Sprint "+string(c)+"review", "a.m4a", []byte("x"))) + rec := do(t, app, uploadReq(t, "Sprint"+string(c)+"review", "a.m4a", []byte("x"))) require.Equal(t, http.StatusSeeOther, rec.Code) var title string