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
-~----------~----~----~----~------~----~------~--~---

Reply via email to