Re: PHP Corrupts URLs
| From: | Richard Davey | Date: | Fri, 08 Jun 2007 21:14:22 +0000 |
| Subject: | Re: PHP Corrupts URLs | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256395@lists.php.net to get a copy of this message | ||
Hi Nathan,
Friday, June 8, 2007, 9:47:22 PM, you wrote:
> I have a php script that gets a url from a GET query parameter. I have
> been running this script on PHP 5.2.2 on Ubuntu Linux, and everything
> works as expected. I have just installed PHP 5.2.3 on OS X via
> MacPorts, and the same query parameter url has any single quote
> characters escaped with a backslash when I retrieve it from $_REQUEST.
[snip]
> As you can see, in OS X the url acquires a the backslashes, which I
> would like to avoid.
> I am not much of a PHP programmer at this point--it is a brand new
> language for me, so I don't really now how to investigate this. Is
> there a PHP configuration option I can look at?
Sure.. look at the magic_quotes_gpc setting:
http://uk.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc
Cheers,
Rich
--
Zend Certified Engineer
http://www.corephp.co.uk
"Never trust a computer you can't throw out of a window"