File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments