torsdag den 18. juni 2015

The case of WFFM going double escaping

This one is quiet interresting - a while ago, we had a customer which wanted to use the Send Email save action in WFFM.

They had designed the form with several fields, including a field called Mail, in which the user should enter their email address.

In the save action, they had selected the Mail field in the CC section, so the user would be CC on the mail that got send out.

The way this works, is when you insert a field into here, it is wrapped with square brackets, so it becomes [Mail] .

Now, when they clicked OK to close the save action, and opened it again, Sitecore had changed it to [[Mail]], which made it fail with an exception when the user filled out the form.
Changing it back and saving made not difference, since it kept changing it to [[Mail]].

We contacted Sitecore Support, and got a fix for it - so if you run in to this issue, please contact them, and say you want the fix from issue #436119.

The version we had the issue with is 2.3 rev.140617, so if you are using another version, it might work for you without the fix.

Ingen kommentarer:

Send en kommentar