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:
@@ -1,10 +1,8 @@
|
|||||||
package web_test
|
package web_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
|
||||||
"log/slog"
|
"log/slog"
|
||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
@@ -72,7 +70,7 @@ func TestUploadPost_EveryBidirectionalControlCharacterIsStrippedFromATitle(t *te
|
|||||||
t.Run(fmt.Sprintf("U+%04X", c), func(t *testing.T) {
|
t.Run(fmt.Sprintf("U+%04X", c), func(t *testing.T) {
|
||||||
app, sub := newUploadApp(t, audioOK, 200<<20)
|
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)
|
require.Equal(t, http.StatusSeeOther, rec.Code)
|
||||||
var title string
|
var title string
|
||||||
|
|||||||
Reference in New Issue
Block a user