4 implementations of IsLocalUrl
Microsoft.AspNetCore.Mvc.Core (1)
Routing\UrlHelperBase.cs (1)
47public virtual bool IsLocalUrl([NotNullWhen(true)][StringSyntax(StringSyntaxAttribute.Uri)] string? url) => CheckIsLocalUrl(url);
Microsoft.AspNetCore.Mvc.Core.Test (1)
AcceptedAtActionResultTests.cs (1)
308public bool IsLocalUrl(string url) => false;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
PageRemoteAttributeTest.cs (1)
249public bool IsLocalUrl(string url)
RemoteAttributeTest.cs (1)
524public bool IsLocalUrl(string url)
24 references to IsLocalUrl
ClaimsTransformation (1)
Controllers\AccountController.cs (1)
44if (Url.IsLocalUrl(returnUrl))
Cookies (1)
Controllers\AccountController.cs (1)
43if (Url.IsLocalUrl(returnUrl))
Identity.ExternalClaims (1)
Extensions\UrlHelperExtensions.cs (1)
15if (!urlHelper.IsLocalUrl(localUrl))
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
552if (Url.IsLocalUrl(returnUrl))
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\LocalRedirectResultExecutor.cs (1)
44if (!urlHelper.IsLocalUrl(result.Url))
Infrastructure\RedirectResultExecutor.cs (1)
42if (urlHelper.IsLocalUrl(destinationUrl))
Microsoft.AspNetCore.Mvc.Core.Test (16)
Routing\UrlHelperTestBase.cs (16)
70var result = helper.IsLocalUrl(url); 86var result = helper.IsLocalUrl(url); 101var result = helper.IsLocalUrl(url); 117var result = helper.IsLocalUrl(url); 134var result = helper.IsLocalUrl(url); 149var result = helper.IsLocalUrl(url); 164var result = helper.IsLocalUrl(url); 178var result = helper.IsLocalUrl(url); 195var result = helper.IsLocalUrl(url); 213var result = helper.IsLocalUrl(url); 232var result = helper.IsLocalUrl(url); 249var result = helper.IsLocalUrl(url); 268var result = helper.IsLocalUrl(url); 283var result = helper.IsLocalUrl(url); 301var result = helper.IsLocalUrl(url); 320var result = helper.IsLocalUrl(url);
PathSchemeSelection (1)
Controllers\AccountController.cs (1)
44if (Url.IsLocalUrl(returnUrl))
StaticFilesAuth (1)
Controllers\AccountController.cs (1)
43if (Url.IsLocalUrl(returnUrl))