Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email firstname.lastname@example.org
From: Ted Behling (TBehlingMonarchIS.net)
Date: Wed Apr 24 2002 - 12:43:21 CDT
At 11:59 AM 4/24/2002, Sebastian Flothow wrote:
>At 9:09 Uhr -0500 24.4.2002, Jonathan Haase wrote:
>>if( !get_magic_quotes_gpc() )
>> foreach( $_POST as $key => $value )
>> $_POST[$key] = addslashes($value);
>> foreach( $_GET as $key => $value )
>> $_GET[$key] = addslashes($value);
>You need another foreach loop for cookie vars.
Yeah. I said to him offline that if he wanted to be *really* pedantic
about it, he could escape variables' quotes using the sequence defined in
variables_order. Perhaps split() the string into a character array, then
foreach of the elements, do a select/case against the value.
I like this thread. :)
Ted Behling, Web Application Developer
Monarch Information Systems, Inc.