Page 1 of 1
Handling magic_quotes_gpc
Posted: Sat May 08, 2010 10:41 am
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

Re: Handling magic_quotes_gpc
Posted: Sat May 08, 2010 8:58 pm
by Dr.CSS
1.7.* only requires PHP 5.2.4, are you sure they went backward to just 5.2?...
Re: Handling magic_quotes_gpc
Posted: Sun May 09, 2010 12:52 am
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.)
Re: Handling magic_quotes_gpc
Posted: Sun May 09, 2010 2:15 am
by Dr.CSS
Yes 5.2.13 is greater than 5.2.4 as in 4, 5, 6, 7,....12, 13....
[solved] ?...
Re: Handling magic_quotes_gpc
Posted: Sun May 09, 2010 2:58 am
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.