Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Owen Mansel-Chan
2025-09-19 15:47:03 +01:00
committed by Owen Mansel-Chan
parent a9420d46c8
commit 52b6539697

View File

@@ -178,7 +178,7 @@ func testLocalRedirects(ctx echo.Context) error {
param := ctx.Param("someParam")
param2 := param
param3 := param
// Gratuitious copy because sanitization of uses propagates to subsequent uses
// Gratuitous copy because sanitization of uses propagates to subsequent uses
// GOOD: local redirects are unproblematic
ctx.Redirect(301, "/local"+param)
// BAD: this could be a non-local redirect