Cleaning $_POST / form variables
Permalink
Hi,
I've been writing a few external forms and single-page forms which create certain pages, add content blocks and write certain attributes to users/pages etc.
All of this is done via proper methods as set in the API.
For the moment, I've added nothing in terms of making safe my $_POST variables for DB entry - ie - preventing injection and such.
Is this done automatically at some higher level in C5, or do I have to add my own helpers to do this?
Just to reiterate, I'm NOT just connecting directly to the DB and running SQL commands...
Thanks.
I've been writing a few external forms and single-page forms which create certain pages, add content blocks and write certain attributes to users/pages etc.
All of this is done via proper methods as set in the API.
For the moment, I've added nothing in terms of making safe my $_POST variables for DB entry - ie - preventing injection and such.
Is this done automatically at some higher level in C5, or do I have to add my own helpers to do this?
Just to reiterate, I'm NOT just connecting directly to the DB and running SQL commands...
Thanks.
Of course you can also use $db->getAll and $db->execute...there may be others but those are really the only ones I use.