Yes - it is for this reason that I call the function in
beforeValidate, because an isUnique query using unchanged data which
then gets changed is not ideal. My approach with usernames and
passwords is to say by the field what characters are not allowed and
then confirm what got saved to the DB in a welcome/confirmation email.

On Apr 30, 1:02 pm, gmwebs <[EMAIL PROTECTED]> wrote:
> Quite a conundrum... If the function is called beforeSave() then the
> input is not sanitized before being used for validation. Could be an
> issue when using isUnique() as the database is queried at validation
> time using unsanitized input data. Could this be a candidate for SQL
> injection?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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