Adobe Campaign Classic - URL contains character codes

TobeyDallas

30-07-2019

Hello.

I have an unsubscribe URL that links to an outside application.  The URL is sending the email address as "address%40domain.com" and the application is expecting the actual @ sign in the email address.  Is there a way to get Adobe to include this in the link instead of the code?  Of course this content is dynamic using <%= recipient.email %>.  Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Jean-Serge_Biro

MVP

08-08-2019

Hi Toby,

It is because you don't use the escapeUrl function, which is mandatory.

But please, consider that it is not safe at all to expose in clear the recipient.email to the web, think to hackers exploits and spammers...


So you should either use an encrypted/hashed email (by using SHA256), or better, do as factory unsubscribe personalisation blocks do, using the

<%= escapeUrl(recipient.cryptedId)%>

or the equivalent:

<%= escapeUrl(reversibleCrypt(recipient.id)) %>

So Adobe Campaign does the link and it is security safe.

Regards
J-Serge

Answers (1)

Answers (1)

geoffreyl240454

08-08-2019

Hello TobeyDallas​,

Could you please tell me how your unsubscribe link is built into the delivery?

Indeed, I have the @ character in the code when I include <%= recipient.email %> so I don't understand why you have a "%40" instead of the @.

Thanks,

Geoffrey.