[Solved] Page editing escapes characters (0.9.5)
|
3 posts
|
Hi, When I’m editing pages in my 0.9.5 installation, with filter set to —none—, Frog CMS escapes characters in my php code, making the script useless. For instance: I can’t find any info on this on the forum and I find it quite strange that nobody else is experiencing the same problem. Please advice Anders |
|
291 posts
|
Your PHP has magic quotes on. What version of Frog are you running. IIRC new versions of Frog disable magic quotes automagically. |
|
67 posts
|
Hi Anders, Nope can’t reproduce that… Think about it, if it were so, the world would end :) OK – O/S, Browser ? Cheers Dave |
|
3 posts
|
Thank you for your feedback guys. I figured it probably had something to do with magic quotes, but I can’t seem to resolve it. Client: Server: I’ve also tried to set “php_value magic_quotes_gpc off” in my .htaccess Also, get_magic_quotes_gpc() return 0. I do not control the httpd.conf file of the web-server, so I’m not able to change anything there. Are there any other .htaccess/php_value settings I might try to set to affect the problem? Anders |
|
3 posts
|
Might this be related? I’ve created test.php:
and .htaccess:
phpinfo() reports magic_quotes_gpc to be off, get_magic_quotes_gpc() returns 0, but@ $_GET[‘test’]@ still is set to |
|
3 posts
|
It seems my host has set php_admin_flag magic_quotes_gpc on, so I can’t override it in .htaccess. Found the hint here Applied this workaround in index.php I’m not happy with the solution, but it seems to work. Have to contact my web host to get this fixed I guess. The odd thing, though, is that phpinfo() reports magic_quotes_gpc as off even though it’s actually enabled. |
|
96 posts
|
norfa, Did you resolve this issue with your host? Can you give details please? |
|
96 posts
|
My problem solved – see http://forum.madebyfrog.com/topic/1378?page=1#post_8944 |
|
10 posts
|
you can create a “php.ini” file with “magic_quotes_gpc=off” on the first line. |