Quote:
Originally Posted by MarcoH64
Globalize CAN sanitize some values, but the main purpose is to make $_POST etc. vars available as normal variables.
You can not do any sanitisation on an array. You will have to treat each value as untrusted when processing.
|
So I'm basically stuck adding 50+ lines to the globalize array then?
PHP Code:
globalize($_POST, array(
'userid' => INT,
'username' => STR_NOHTML,
'etc' => STR,
'etc' => STR
));
That's gonna be a HUGE amount of lines for what I'm trying to do, and I'm not really comfortable having that much space taken up if I don't need to.
Is it absolutely required on a page, or does the define('NO_REGISTER_GLOBALS', 1); cover me on this?