Skip to content

Commit e8efe0e

Browse files
committed
Add Obsolete attribute to redirectTo
1 parent f51addd commit e8efe0e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Giraffe/Core.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ module Core =
317317
/// <param name="next"></param>
318318
/// <param name="ctx"></param>
319319
/// <returns>A Giraffe <see cref="HttpHandler"/> function which can be composed into a bigger web application.</returns>
320+
[<Obsolete("Use safeRedirectTo to prevent open redirect vulnerabilities.")>]
320321
let redirectTo (permanent: bool) (location: string) : HttpHandler =
321322
fun (_next: HttpFunc) (ctx: HttpContext) ->
322323
ctx.Response.Redirect(location, permanent)

0 commit comments

Comments
 (0)