http://api.cakephp.org/class/sanitize http://book.cakephp.org/view/153/Data-Sanitization
2009/5/8 Fábio "Kym" Nascimento <[email protected]>: > > Hey there, > > Whats the best way to sanitization data in cake? > > What happen is, I have a table users with some fields like name and > preffered color, if the user enter a string like <script>alert('Hi')</ > script> when I echo that string comming from database, its not > sanitized. If I use h() or htmlentities() for example, I can solve the > problem, but is this the best way? > > Thanks > Kym > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
