Thank you both for your help. magic_quotes_gpc cannot be set at runtime. I
added it to my .htaccess file and everything works as expected now. It
should also be noted that it defaults to 'on' in PHP so many servers have it
enabled. For more information:
http://us.php.net/manual/en/security.magicquotes.php
RyanBrooks wrote:
>
>
> Not that I want to contradict Matthew, but last I checked magic_quotes_gpc
> can't be set at runtime.
>
> Try setting it in your php.ini, or alter your .htaccess file with:
> php_value magic_quotes_gpc off
>
> -Ryan
>
> On Mon, 31 Mar 2008 22:15:52 -0400, Matthew Weier O'Phinney
> <[EMAIL PROTECTED]> wrote:
>> Best way? Turn off magic_quotes_gpc.
>>
>> Zend_Form isn't adding them; PHP is, because that setting is on. Turn it
>> off early in your bootstrap:
>>
>> ini_set('magic_quotes_gpc', false);
>>
>> (Most default configurations have this off currently, for this very
>> reason.)
>>
>> --
>> Matthew Weier O'Phinney
>> PHP Developer | [EMAIL PROTECTED]
>> Zend - The PHP Company | http://www.zend.com/
> --
> http://www.zed23.com/
>
>
>
--
View this message in context:
http://www.nabble.com/Zend_Form-and-slashes-tp16399099p16418414.html
Sent from the Zend Framework mailing list archive at Nabble.com.