Skip to content

Commit 2a729e0

Browse files
authored
Remove Obsolete from redirectTo (#695)
1 parent 9d605df commit 2a729e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Giraffe/Core.fs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,14 +310,13 @@ module Core =
310310

311311
/// <summary>
312312
/// Redirects to a different location with a `302` or `301` (when permanent) HTTP status code.
313-
/// Does not validate redirection. Consider alternative: safeRedirectTo
313+
/// Does not validate redirection. Consider alternative: <see cref="safeRedirectTo"/>
314314
/// </summary>
315315
/// <param name="permanent">If true the redirect is permanent (301), otherwise temporary (302).</param>
316316
/// <param name="location">The URL to redirect the client to.</param>
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.")>]
321320
let redirectTo (permanent: bool) (location: string) : HttpHandler =
322321
fun (_next: HttpFunc) (ctx: HttpContext) ->
323322
ctx.Response.Redirect(location, permanent)

0 commit comments

Comments
 (0)