Hi:
the code depends on variables passed to subsequent pages via the URL. (so GET or POST? )
I know this could be prone to injection of malicious code and before all is released, I would like some help to check that code is secure.
The following code is what PJV (verrier) wrote a few years ago.
I am willing to have my code reviewed for weaknesses.
This code is a the top of every page and treats all the variables that are coming in.
`
foreach ( $_GET as $sk => $sv ) {
// stop injection
// convert with htmlentities($userInput);
Hi: the code depends on variables passed to subsequent pages via the URL. (so GET or POST? ) I know this could be prone to injection of malicious code and before all is released, I would like some help to check that code is secure. The following code is what PJV (verrier) wrote a few years ago. I am willing to have my code reviewed for weaknesses.
This code is a the top of every page and treats all the variables that are coming in. ` foreach ( $_GET as $sk => $sv ) { // stop injection // convert with htmlentities($userInput);
}
foreach ( $_POST as $sk => $sv ) { // stop injection // convert with htmlentities($userInput);
}
`