note 86625 deleted from function.import-request-variables by felipe
| From: | felipe@php.net | Date: | Mon, 27 Oct 2008 11:48:19 +0000 |
| Subject: | note 86625 deleted from function.import-request-variables by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-145796@lists.php.net to get a copy of this message | ||
Note Submitter: cycletourist
----
regarding the last post: michal dot kocarek at NO_SPAM dot seznam dot cz
I almost don't want to admit that I used this function, but .... stripslashes_deep has an error
in it:
function stripslashes_deep($var) {
if (!is_array($var))
return stripslashes($var);
foreach($var as $k => $v) {
$var[$k] = stripslashes_deep($var);
}
return $var;
}
the line:
$var[$k] = stripslashes_deep($var);
should be:
$var[$k] = stripslashes_deep($v);
--
[you can visit my name - add dot com - to contact me]