Skip to content

Commit

Permalink
fix url absolute check, ensure task setup only modifies docker-desktop (
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev authored Nov 18, 2024
1 parent 10a107f commit 022f8b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ tasks:
- git submodule update --recursive
- git config --local submodule.recurse true
- kubectl --context=docker-desktop apply -f deployment/setup/namespace.yaml
- kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.15.0/cert-manager.yaml
- kubectl --context=docker-desktop apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.15.0/cert-manager.yaml
- docker build -t local-dev-init data/
setup-win:
platforms: [ windows ]
Expand Down
2 changes: 1 addition & 1 deletion backend/LexBoxApi/Services/EmailService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ private string MakeLoginRedirectUrl(string jwt, string? returnTo)
{
ArgumentException.ThrowIfNullOrEmpty(jwt);
ArgumentException.ThrowIfNullOrEmpty(returnTo);
if (new Uri(returnTo).IsAbsoluteUri) throw new ArgumentException($"returnTo must be relative, was: {returnTo}", nameof(returnTo));
if (new Uri(returnTo, UriKind.RelativeOrAbsolute).IsAbsoluteUri) throw new ArgumentException($"returnTo must be relative, was: {returnTo}", nameof(returnTo));
var httpContext = httpContextAccessor.HttpContext;
ArgumentNullException.ThrowIfNull(httpContext);
var loginRedirect = _linkGenerator.GetUriByAction(httpContext,
Expand Down

0 comments on commit 022f8b5

Please sign in to comment.