Data to Session bug on email field

rubenc 03 May, 2013
Good Day, I found a little bug with the Data to Session.

I have a Form with a Text Box that is being used the input of an email, I also Have a confirmation page.

On Submit I make a "Data to Session" and right after that I placed a Debuger to see the output.
the email field "looks" wrong because it is one line below, but what is actually happening is that some <script></script> tags are added and the email is "clickable" because it is changed as a "mailto".

This results in:
Array
(
[chronoform] => Renta_de_Autos
[event] => submit
[Itemid] => 567
[option] => com_content
[view] => article
[id] => 155
[nombre] =>
[email] =>
[email]r23423n.werwerwerwr@gmail.com[/email]
[tel] =>
[178db915bddc0326ff3fd77ce608daec] => 1
)


The problem is that when the user cancels and goes back to the form.
in the text box instead of showing the email as it should be:
it is showing what is actually saved on the array.


<script type='text/javascript'> <!-- var prefix = 'ma' + 'il' + 'to'; var path = 'hr' + 'ef' + '='; var addy5771 = 'r23423n.werwerwerwr' + '@'; addy5771 = addy5771 + 'gmail' + '.' + 'com'; document.write('<a ' + path + '\'' + prefix + ':' + addy5771 + '\'>'); document.write(addy5771); document.write('<\/a>'); //-->\n </script><script type='text/javascript'> <!-- document.write('<span style=\'display: none;\'>'); //--> </script>Esta dirección de correo electrónico está siendo protegida contra los robots de spam. Necesita tener JavaScript habilitado para poder verlo. <script type='text/javascript'> <!-- document.write('</'); document.write('span>'); //--> </script>


I have the form inside of an article, and I noticed that this "bug" is not shown with the default configuration of the form:

General -> Relative URL : No

But I need to change this to YES in order to see the form inside of the article otherwise the url is lost and all the modules and things on the layout as well.

Therefore I think this error is only reproducible if

General -> Relative URL : YES.

Could someone take a look on this and help me solve this problem?
thankyou.
rubenc 04 May, 2013
Thankyou very muchm that solved the problem.

I "unpublish" that plug-in since I am not using it.



Feedback: FAQ explains how to move it also, but it is not clear if it is needed where should it be placed? should it load before or after chronoforms? or how should it be configured in case it is needed? :-)

Regards
GreyHead 04 May, 2013
Hi rubenc,

change the plug-ins order so that Email Cloaking runs before ChronoForms



Bob
This topic is locked and no more replies can be posted.