|
Posted by Andy Hassall on 02/27/06 23:20
On Mon, 27 Feb 2006 21:11:07 GMT, egusenet@verizon.net (Eric) wrote:
>However, when I run this form on my webhost, I enter:
> we'll
>in the textarea and when I submit the form, I get:
> we\'ll
>
>Somehow a slash was added before the tick mark. Is this some
>configuration option? Does it have to do with how PHP is configured on
>the webhost? Does it have something to do with how Apache is configured
>on the webhost? Any idea how the slash got there?
It's the misguided PHP configuration option "magic_quotes_gpc".
http://uk2.php.net/manual/en/security.magicquotes.php
This should be Off. Sounds like it's On on your webhost.
If you have permissions, you may be able to disable it in a .htaccess file.
Otherwise you'll have to mess around checking whether it's on or off, and if
it's on, use stripslashes() on the data, which is fairly ridiculous.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
[Back to original message]
|