Very simple :)
when recursion happens, you return the sanitized value, but never store
it ;)
[EMAIL PROTECTED] wrote:
I'm trying to sanitize my user input. My sanitize function does not work if
I send a variable that's an array. I'm using recursion to go through the
array. The example below
variable and returns it as a sanitized value.
- Original Message -
From: M. Sokolewicz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 08, 2004 6:19 PM
Subject: [PHP] Re: Recursion to sanitize user input
Very simple :)
when recursion happens, you return the sanitized value
The recursion doesn't do anything with the returned value from the function.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
3 matches
Mail list logo