Re: seems like magic_quotes_gpc is turning itsself on!
| From: | William Bailey | Date: | Tue, 21 Oct 2003 11:55:41 +0000 |
| Subject: | Re: seems like magic_quotes_gpc is turning itsself on! | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166945@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It can be on any page.
The magic_quotes_gpc check takes place in a settings.php file which is
always the first thing included for every php page for this site. It has
a number of define statements and a few other includes and thats about
it. No database connections or anything else apart from class and
function declarations have taken place.
CPT John W. Holmes wrote:
| From: "William Bailey" <wb@pro-net.co.uk>
|
|>I have a strange problem with one of the sites i work on and provide
|>support for. I the following block of code that checks to see if
|>magic_quotes_gpc is enabled and if it is it dies with an error message:
|>
|>if((integer)ini_get('magic_quotes_gpc')!=0){
|>~ debug('Magic Quotes GPC is currently active. Please disable.');
|>}
|>
|>The debug functoin just displays a sorry message on the browser and
|>emails the description and the serialized $GLOBALS variable back to me.
|>
|>in the php.ini i have the following:
|>
|>; Magic quotes for incoming GET/POST/Cookie data.
|>magic_quotes_gpc = Off
|>
|>Now every so often say at most 1 in 100 hits a user will see the sorry
|>screen and i get a call back email and every time its the same issue
|>'Magic Quotes GPC is currently active. Please disable.'
|
|
| Is it only for certain pages or random ones? Examing $GLOBALS doesn't give
| any clues, I presume? Nothing strange in the query string, etc?
|
| ---John Holmes...
|
|
- --
Regards,
William Bailey.
Pro-Net Internet Services Ltd.
http://www.pro-net.co.uk/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE/lR68zSfrYDJMXmERArIOAKCW7GgGw1+tp6q+mNNEY3tBtA0hAACgx0mD
8YVju4wwttUPFJtBz+EBwJk=
=xVnS
-----END PGP SIGNATURE-----