Handling magic_quotes_gpc

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
daz
Forum Members
Forum Members
Posts: 10
Joined: Sun Jun 14, 2009 7:50 pm

Handling magic_quotes_gpc

Post by daz »

My webhost just downgraded to PHP 5.2 today, which has a bug that forces magic_quotes_gpc to be enabled (despite my having it disabled through php, php.ini, and .htaccess). This has the side effect of automatically escaping quotes when I try to update a page, and with that page having HTML, it completely destroys it.

So, is there a version of cmsms that knows how to handle this problem? IIRC phpbb3/SMF 1.1.11 were able to handle this, wordpress was not. I'm using 1.6 as I believe 1.7 has higher PHP requirements.

...is there any editing to some files I could do myself? The only thing I need cmsms for is quick page editing ;)
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Handling magic_quotes_gpc

Post by Dr.CSS »

1.7.* only requires PHP 5.2.4, are you sure they went backward to just 5.2?...
daz
Forum Members
Forum Members
Posts: 10
Joined: Sun Jun 14, 2009 7:50 pm

Re: Handling magic_quotes_gpc

Post by daz »

Specifically, 5.2.13. It was 5.3.X

-Sigh- And if 1.7+ has a fix for magic_quotes_gpc, but won't run on < 5.2.4, then yes I'm in a spot of trouble until my host decides to upgrade again.  I think it's time I go shopping again... shame.

Actually I am confused. Based on this: "Note: Minimum PHP Version required is 5.2.4 though we recommend PHP 5.2.12"

So. I'm guessing 12 would be a higher revision number than 4 eh? This is good. I'm going to backup and test it out for kicks.


*** EDIT:
After spending a lot of time upgrading from 1.5.7 (to 1.6 yesterday) to 1.7.1, it still doesn't handle this PHP bug (and the CMS works, yay.)
Last edited by daz on Sun May 09, 2010 2:09 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Handling magic_quotes_gpc

Post by Dr.CSS »

Yes 5.2.13 is greater than 5.2.4 as in 4, 5, 6, 7,....12, 13....

[solved] ?...
daz
Forum Members
Forum Members
Posts: 10
Joined: Sun Jun 14, 2009 7:50 pm

Re: Handling magic_quotes_gpc

Post by daz »

Dr.CSS wrote: Yes 5.2.13 is greater than 5.2.4 as in 4, 5, 6, 7,....12, 13....

[solved] ?...
Not solved yet, see previous post edit:
"*** EDIT:
After spending a lot of time upgrading from 1.5.7 (to 1.6 yesterday) to 1.7.1, it still doesn't handle this PHP bug (and the CMS works, yay.)"

Pages saved with cmsms still show quotes escaped if magic_quotes_gpc is on (or bugged on, in my case.) I wouldn't really demand this of cmsms, more like I wish it was there so I didn't have to yell at my host or find a new one because of the bugged PHP they're using.
Post Reply

Return to “CMSMS Core”