Dont you mean beforeSave()? Why would you sanitize after grabbing data? http://www.milesj.me/blog/read/47/Automatically-Sanitizing-Data-With-BeforeSave http://www.milesj.me/blog/read/49/Stripping-HTML-Automatically-From-Your-Data
On Oct 23, 1:56 pm, Lucas Costa <[email protected]> wrote: > Hello fellows, > > what do you think about putting an Sanitize::clean on the AfterFind of every > Model? > > Wouldn't that ensure same security and a lot less code? > > What would be the down side? > > Regards... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
