Re: [PHP] Stripslashes redundancy question.

2010-10-25 Thread Adam Richardson
> You can only call stripslashes once, and only if magic quotes is > enabled. Even if you can turn it off on your server, if there is any > chance your code will be used on other servers where it might not be > turned off, you need to wrap it with the test for magic quotes to make > it safe. We alw

Re: [PHP] Stripslashes redundancy question.

2010-10-25 Thread Shawn McKenzie
On 10/25/2010 09:49 AM, Paul M Foster wrote: > On Sun, Oct 24, 2010 at 09:33:23PM -0400, Adam Richardson wrote: > > > >> This >> was after many criticisms were leveled against the use of magic quotes: >> http://en.wikipedi

Re: [PHP] Stripslashes redundancy question.

2010-10-25 Thread Paul M Foster
On Sun, Oct 24, 2010 at 09:33:23PM -0400, Adam Richardson wrote: > This > was after many criticisms were leveled against the use of magic quotes: > http://en.wikipedia.org/wiki/Magic_quotes Wait-- according to this last l

RE: [PHP] Stripslashes redundancy question.

2010-10-25 Thread Bob McConnell
From: Adam Richardson > On Sun, Oct 24, 2010 at 6:29 PM, Gary wrote: >> In my form processing scripts, I usually have the variable set as so: >> >> $email = stripslashes($_POST['email']); >> >> I have discovered that the program that I use has a pre-written function of >> this: >> >> // remove es

Re: [PHP] Stripslashes redundancy question.

2010-10-24 Thread Adam Richardson
On Sun, Oct 24, 2010 at 6:29 PM, Gary wrote: > In my form processing scripts, I usually have the variable set as so: > > $email = stripslashes($_POST['email']); > > I have discovered that the program that I use has a pre-written function of > this: > > // remove escape characters from POST array

[PHP] Stripslashes redundancy question.

2010-10-24 Thread Gary
In my form processing scripts, I usually have the variable set as so: $email = stripslashes($_POST['email']); I have discovered that the program that I use has a pre-written function of this: // remove escape characters from POST array if (get_magic_quotes_gpc()) { function stripslashes_deep(