This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 48534da10 Fixed: Link in verification email for Newsletter gives 
security error (OFBIZ-9804)
48534da10 is described below

commit 48534da103151f9858120e1438743bd5ed8516d1
Author: Jacques Le Roux <jacques.le.r...@les7arts.com>
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+'&amp;partyId='+contactListParty.partyId+'&amp;fromDate='+contactListParty.fromDate+'&amp;statusId=CLPT_UNSUBS_PENDING&amp;optInVerifyCode='+contactListPartyStatus.optInVerifyCode+'&amp;baseLocation='+baseLocation!>

Reply via email to