Don't crash if email address has sub-address with special characters #44

Merged
olaven merged 3 commits from allow-sub-addresses-in-emails into main 2025-06-18 20:52:14 +00:00
1 changed files with 0 additions and 1 deletions
Showing only changes of commit f6de0aba33 - Show all commits

View File

@ -55,7 +55,6 @@ export const createAgreement = async function (email: string) {
// with +, e.g. "name+subscriptions@domain.com" // with +, e.g. "name+subscriptions@domain.com"
const urlEncodedEmail = encodeURIComponent(email); const urlEncodedEmail = encodeURIComponent(email);
const redirectUrl = `${getHostUrl()}/donations-success?urlEncodedEmail=${urlEncodedEmail}`; const redirectUrl = `${getHostUrl()}/donations-success?urlEncodedEmail=${urlEncodedEmail}`;
console.log(redirectUrl, "HER ER DET");
const response = await fetch(`${config.baseUrl}/recurring/v3/agreements/`, { const response = await fetch(`${config.baseUrl}/recurring/v3/agreements/`, {
method: "POST", method: "POST",
// @ts-ignore // @ts-ignore