HubSpot Ideas

matt_si

Support Hubl filters in email templates

We are using a Form to collect leads and automatically send them an email using a Workflow. The emails are personalised i.e. "Hi Max," but the first_name property comes from the form data. This means that someone could enter "evil.com" as their first name and and email address as their email and we would send "Hi evil.com," (which becomes a link)em.png 

If we had access to Hubl filters in email templates we could mitigate this risk by filtering the first_name property (using replace() for example).

 

This is a security issue and I'm sure we're not the only company sending emails containing untrusted user input.

1 Reply
fonji
Contributor

Our need is to format a date and time field from contact.

Seems like one of the most basic of localization functionnality to ask for in an email template.

But we can't use something like

I hereby confirm our meeting on {{ contact.next_meeting_date | datetimeformat("%d/%m at %H:%M") }}

I guess to do that we need a workflow to format the property in another field every time it changes, which seems overkill.