By aridseas on
Tried everything, but every time now that I put an apostrophe in a page, and now even in links, there is a backslash before and after the apostrophes (\\\)
Here's an example:
http://aridseas.net/CMS/?q=Blackhat-SEO-Basics
Any ideas?
Comments
Cant see any on the link
Cant see any on the link given
Please let me know if you
Please let me know if you have corrected it.
similar problem on my site, for eg.:
"parrot", 'each' is being converted after saving the file to \"parrot\", \'each\'
Many thanks for help
To solve this issue
This issue almost make me crazy... I was trying everything to solve.. even installing fresh new Drupal sites (6.24 and 7.12) and happens again, so it's not a Drupal problem but a Hosting problem.
- So I solve this turning off magic quotes in php.ini (magic_quotes_gpc = Off) -
Something changed on the hosting side as this setting has been on for the last 4 years.
Submitted content ends up
Submitted content ends up with garbage quotes and backslashes : \"\\ "\\\\ etc. A magic_quotes_gpc issue
Sounds like Bluehost (?) has migrated everyone to the PHP version where that change was made. A dozen different folk have been encountering this just this weekend.
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Must be... I was working on a
Must be... I was working on a number of sites yesterday and didn't encounter this issue at all. Today, all three of the sites I was working have encountered the issue.
My magic_quotes_gpc is off already (set in php.ini), so I'm not sure how to fix it now. I can only assume there's something else going on. Perhaps I need to get onto my host.
For info sake, more slashes get added each time you save something - I was checking using a node's title and then realised I had apostrophes in the body of the node which now read as:
we\\\\\\\\\\\\\\\\\\\\\\\\\\'ll
See that link I posted. 2
See that link I posted.
2 things.
* Yes, you get more slashes each time you save. That's described there in the first paragraph.
* PHPInfo is probably *lying to you* (described in that link) about the true state of magic quotes. That's the PHP bug.
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Thanks, but checking root
Thanks, but checking root php.ini indicates that magic_quotes is actually set to off. Commenting out the section in .htaccess doesn't help either (as it's already off).
I tested setting magic_quotes to 'On' in php.ini and then commenting out the appropriate .htaccess files, this didn't work either - I have a Drupal 6 install that already has the magic_quotes lines commented out also still showing symptoms.
Also tried setting magic_quotes_sybase to On and commenting out in .htaccess again to no avail.
I'll have to get onto the host and see if I can find out what changes/updates were actually made, considering this issue only popped up yesterday.
EDIT:
Fixed by upgrading to PHP 5.3