Jump to content

Filtering out all the bad stuff from $_GET, $_POST, and $_COOKIE


TommieV

Recommended Posts

Hi,

 

I thought I had a quite nice way to filter out all the 'bad and dangerous' stuff from all my post, get, and cookie variables, with a nice snippet of my code:

http://pastebin.ca/454618 (dont worry, it isn't that long)

But it is apparently not working. I've got a hunch that the problem lies within somewhere in how I am using the foreach() function, because if I use the functions except for the foreach() function on a different variable, it works just fine.

Any help would be appreciated,

 

TommieV

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.