$this->data is always automatically un-escaped if needed.  $_POST
isn't though.

How are you getting your data from the form?  Post the appropriate
action from your controller.



On Oct 27, 6:57 pm, "Artem B." <[EMAIL PROTECTED]> wrote:
> Hi, everybody!
>
> I'm using 1.2.0.5427alpha and MySQL server.
> I load the data from my form and save it ($this->Model->save($data))
> I do not use any sanitization or escaping by hands. But the data is
> strangely double-escaped. I mean, if I save a title something like
> "\Hello, 'World' ", I have it saved as "\\Hello, \'World\' ". If I
> click edit, and submit, the slashes are doubles and it goes like "\\\
> \Hello, \\\'World\\\' ". I can't strip_slashes, because I do want
> users to use slashes and other special chars.
>
> Could anyone help? Thanx in advance


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to