FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Sanitizing user input
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Sanitizing user input [message #169846 is a reply to message #169845] Tue, 28 September 2010 11:21 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 9/28/2010 6:11 AM, Web Dreamer wrote:
> MikeB a écrit ce vendredi 24 septembre 2010 17:24 dans<4c9cc294$1(at)news(dot)x-
> privat.org> :
>
>> My book has the sample as:
>>
>> if (get_magic_quotes_gpc()($string=stripslashes($string));
>>
>> copied from text, so there may be a typo. :)
>
> Yep, it should be:
>
> if (get_magic_quotes_gpc()) $string=stripslashes($string);
> Or to make it clearer:
>
> if (get_magic_quotes_gpc())
> {
> $string=stripslashes($string);
> }
>

<snip>

Or, better yet, don't use a hosting company which has magic_quotes_gpc()
enabled, and you can forget all about this mess. The whole thing has
been deprecated and will be removed in PHP 6.0.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to write a wsdl for php webservice?
Next Topic: ANNOUNCE - NHI1 / PLMK / libmsgque - Work-Package-II
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 22:04:45 GMT 2024

Total time taken to generate the page: 0.04583 seconds