Cake will escape your data before saving it to the database if you are
using Model::save(), your model should validate the data so it's
conforming to your application input requirements and cake helpers
(form/html) will escape it when displaying and you can use the h()
function for outputting data that can have bad html, so: Why are you
using Sanitize ?

On Fri, Oct 10, 2008 at 10:37 AM, stefanski <[EMAIL PROTECTED]> wrote:
>
> Hi folks, I want to clean up user input before saving into the
> database, but when I Sanitize::clean($this->data) it changes negative
> integer values like -10 into &#45;10 and I get a database (Postgres)
> error because - obviously - it's not an integer anymore.
>
> I want to avoid manually cleaning avery text field and wonder, what
> other people - like you! - do ??
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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