Project

General

Profile

« Previous | Next » 

Revision 79a2945a

Added by Phil Davis over 8 years ago

Do input validation on the actual array passed in

I was tearing my hair out for a while. If do_input_validation() is passed some array of keys/values that has been assembled elsewhere (not $_POST, $_GET or $_REQUEST superglobals) then it does not work. The code here, for at least the last 7 years, has actually been checking the array keys in the "hard-coded" superglobals. That is a bit surprising, since the array to be checked is passed in as $postdata parameter.
(cherry picked from commit 4df266f5bcea2e6804799e6c3db06cbc98366e42)

  • added
  • modified
  • copied
  • renamed
  • deleted