test(web): the title input that proves a bidi character is dropped, not replaced

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-02 17:36:42 +02:00
co-authored by Claude Sonnet 5.5
parent 067620d06a
commit 815ee98d4c
@@ -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