The best part of sanitize that I found was the stripAll/stripScripts, if you want prevent things like XSS attacks. However, I'm a big fan of the HTMLPurifier that I'm already using in my app. I think for my app, I'm going to use the HTMLPurifier and create a function to loop through arrays of data, much like the Sanitize::clean, to clean up my data. Just some thoughts.
Speaking of which, how does Sanitize::clean loop through an entire array? Is there some sort of method that's already built into cake that will do this? On Oct 10, 7: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 -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 -~----------~----~----~----~------~----~------~--~---
