Browse Source

Encode the `returnUrl` if it start with `/connect/authorize?`.

pull/17364/head
maliming 3 years ago
parent
commit
a8d671fa05
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 5
      modules/account/src/Volo.Abp.Account.Application/Volo/Abp/Account/Emailing/AccountEmailer.cs

5
modules/account/src/Volo.Abp.Account.Application/Volo/Abp/Account/Emailing/AccountEmailer.cs

@ -101,6 +101,11 @@ public class AccountEmailer : IAccountEmailer, ITransientDependency
}
}
if (returnUrl.StartsWith("/connect/authorize?", StringComparison.OrdinalIgnoreCase))
{
return HttpUtility.UrlEncode(returnUrl);
}
return returnUrl;
}
}

Loading…
Cancel
Save