Guillermo Rauch wrote:
Hi Jeffery,
To use a class method as a valid callback, you should pass an array like
$_POST = array_map(array($this, 'StripSlashesDeep'), $_POST);
Hope this helps,
-Guillermo
Ah thanks Guillermo,
I just about figured it out when you posted. It works now :-)
cheers,
Jeffe
Hi Jeffery,
To use a class method as a valid callback, you should pass an array like
$_POST = array_map(array($this, 'StripSlashesDeep'), $_POST);
Hope this helps,
-Guillermo
On Mon, 7 Feb 2005 17:10:32 -0600, Greg Donald <[EMAIL PROTECTED]> wrote:
> On Tue, 08 Feb 2005 09:37:11 +1100, Jeffery
On Tue, 08 Feb 2005 09:37:11 +1100, Jeffery Fernandez
<[EMAIL PROTECTED]> wrote:
> I have the following 2 functions which I intend to clean GPC off slashes
> if magic_quotes_gpc is turned on.
>
> function StripGpcSlashes()
> {
> if (get_magic_quotes_gpc())
> {
> $_POST = array_ma
3 matches
Mail list logo