Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
[PAYH] PHP5.2 and magic_quotes
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Re: [PAYH] PHP5.2 and magic_quotes
[PAYH] PHP5.2 and magic_quotes
28-11-2008 8:22 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I have just moved the PHP back-end of a forms-based application from CGI to PAYH (the front end is untouched apart from using a different 'action' URL in the <form> tag).
The front-end form uses POST, and the receiving PHP uses $_POST to receive it.
If a single quote ( ' ) is entered anywhere within the form text, it now appears in the backend as escaped quote ( \' ), whereas in CGI it was unaltered.
Has the default for magic_quotes_gpc in the PAYH environment been switched to 'enabled'?
The front-end form uses POST, and the receiving PHP uses $_POST to receive it.
If a single quote ( ' ) is entered anywhere within the form text, it now appears in the backend as escaped quote ( \' ), whereas in CGI it was unaltered.
Has the default for magic_quotes_gpc in the PAYH environment been switched to 'enabled'?
Zen from May 17. PN Business account from 2004 - 2017
Message 1 of 3
(1,051 Views)
2 REPLIES 2
Re: [PAYH] PHP5.2 and magic_quotes
28-11-2008 8:53 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Yes, magic_quotes_gpc is on. It shouldn't be. Stick php_flag magic_quotes_gpc Off in your .htaccess and it won't be.
Gabe
Gabe
Message 2 of 3
(359 Views)
Re: [PAYH] PHP5.2 and magic_quotes
28-11-2008 9:18 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks Gabe. Your absolutely right: having magic_quotes enabled is daft.
And the entire freature is removed in PHP6 anyway so PN are storing up trouble if they leave it on...
And the entire freature is removed in PHP6 anyway so PN are storing up trouble if they leave it on...
Zen from May 17. PN Business account from 2004 - 2017
Message 3 of 3
(359 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Re: [PAYH] PHP5.2 and magic_quotes