I have been reading the cookbook looking for info on cleaning data submitted
by user.
$badString = '<font size="99"
color="#FF0000">HEY</font><script>...</script>';
echo Sanitize::html($badString);
Appears to me this is in the view.
But how can I prevent it from being saved to the database?
I have this in a controller my understanding is its cleaning the form
submitted data?
$this->params['form']['value'] =
Sanitize::clean($this->params['form']['value'], array(' '));
Thanks,
Dave
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---