Hi!
I've got problem with submitting news. I've recently switched my host and restored database. And when I want to submit or update news items, backslash is added before " (quote) character. I tried to turn TinyMCE off, but that doesn't seem to solve it. Quotes are also "backslashed" in comments. When I enter the data through PhpMyAdmin, it works, but posting through admin interface or comments text area puts backslashes before apostrophes.
Any ideas, what could be the reason for this? Bad database encoding, possibly...
Thanks.
CMSMS: 1.2.4
News Module: 2.7
Encoding: utf-8
[SOLVED] Backslashes in News
[SOLVED] Backslashes in News
Last edited by Matio on Fri May 02, 2008 7:31 am, edited 1 time in total.
Re: Backslashes in News
You need to turn magic quotes off.
Add this line in your .htaccess file:
php_flag magic_quotes_gpc off
Add this line in your .htaccess file:
php_flag magic_quotes_gpc off
Re: Backslashes in News
Thank you, nivekiam. That works perfectly.
Re: [SOLVED] Backslashes in News
I'm having this same problem, but the .htaccess edit didn't fix it. Are there any other options hidden somewhere that could be causing this?
Re: [SOLVED] Backslashes in News
You could try adding:
ini_set('magic_quotes_runtime', 0);
near the top of your config.php file.
Nullig
ini_set('magic_quotes_runtime', 0);
near the top of your config.php file.
Nullig