Re: %27 and ' - urlencode
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: %27 and ' - urlencode

From: elyob <newsprofile@gmail.com>
Date: Fri Sep 09 2005 - 13:02:41 CEST

"Oli Filth" <catch@olifilth.co.uk> wrote in message
news:EtdUe.25$2y.11@newsfe7-win.ntli.net...
> elyob said the following on 09/09/2005 11:21:
>> Quite a lot of my data has apostrophes in. I'm passing the data using
>> $_POST and urlencode. So, for example, Joe's becomes Joe%27s.
>>
>> On the next page, I urldecode and display the name in the META title. It
>> comes out as Joe\'s.
>>
>> When I pass it once again, it becomes Joe\\\'s.
>>
>> What am I doing wrong here?
>
> http://www.php.net/manual/security.magicquotes.php
>
> If you can, disable this feature, cos it's really annoying, as you've just
> found out!
>

Great stuff. Thanks for that, the default php.ini had this. It's now gone. I
seem to remember one of the main PHP developers writing that magic quotes is
stupid and should be dropped.
Received on Tue Oct 18 02:20:55 2005