Skip to content

Commit c6b6afa

Browse files
Update aspnetcore/security/preventing-open-redirects.md
Co-authored-by: Martin Costello <[email protected]>
1 parent f327548 commit c6b6afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aspnetcore/security/preventing-open-redirects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The `IUrlHelper.IsLocalUrl` method protects users from being inadvertently redir
7676

7777
### Detect if URL is local using `RedirectHttpResult.IsLocalUrl`
7878

79-
The [`RedirectHttpResult.IsLocalUrl(url)`](https://source.dot.net/#Microsoft.AspNetCore.Http.Results/RedirectHttpResult.cs,c0ece2e6266cb369) helper method to detects if a URL is local. A URL is considered local if the following are true:
79+
The [`RedirectHttpResult.IsLocalUrl(url)`](https://source.dot.net/#Microsoft.AspNetCore.Http.Results/RedirectHttpResult.cs,c0ece2e6266cb369) helper method detects if a URL is local. A URL is considered local if the following are true:
8080

8181
* It doesn't have the [host](https://developer.mozilla.org/docs/Web/API/URL/host) or [authority](https://developer.mozilla.org/docs/Web/URI/Authority) section.
8282
* It has an [absolute path](https://developer.mozilla.org/docs/Learn_web_development/Howto/Web_mechanics/What_is_a_URL#absolute_urls_vs._relative_urls).

0 commit comments

Comments
 (0)