This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git
The following commit(s) were added to refs/heads/release18.12 by this push:
new 2b08b865b Fixed: Link in verification email for Newsletter gives
security error (OFBIZ-9804)
2b08b865b is described below
commit 2b08b865bce25cde5d55d1762d89c96bcaa92e95
Author: Jacques Le Roux <[email protected]>
AuthorDate: Wed May 1 15:11:14 2024 +0200
Fixed: Link in verification email for Newsletter gives security error
(OFBIZ-9804)
It's a bit abused to reuse this Jira issue but as it's a really trivial
fix...
---
ecommerce/template/email/ContactListSubscribeEmail.ftl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ecommerce/template/email/ContactListSubscribeEmail.ftl
b/ecommerce/template/email/ContactListSubscribeEmail.ftl
index ab8896a8f..2800846cb 100644
--- a/ecommerce/template/email/ContactListSubscribeEmail.ftl
+++ b/ecommerce/template/email/ContactListSubscribeEmail.ftl
@@ -20,7 +20,7 @@ under the License.
<body>
<p>Hello ${partyName.firstName!} ${partyName.lastName!}
${partyName.groupName!}!</p>
<p>Successfully subscribed from ${contactList.contactListName} contact
list.</p>
- <#if baseLocation == "/ecomseo">
+ <#if baseLocation?? && baseLocation== "/ecomseo">
<#assign baseLocation = "/ecommerce">
</#if>
<#assign verifyUrl = baseEcommerceSecureUrl
+'updateContactListPartyNoUserLogin?contactListId='+contactListParty.contactListId+'&partyId='+contactListParty.partyId+'&fromDate='+contactListParty.fromDate+'&statusId=CLPT_UNSUBS_PENDING&optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&baseLocation='+baseLocation!>