Roundcube Community Forum

Release Support => Pending Issues => Topic started by: djkalima on January 08, 2018, 04:24:09 PM

Title: 1.3.3 - Single Quote and Double Quote Rendering Backslashes (SOLVED)
Post by: djkalima on January 08, 2018, 04:24:09 PM
Recently updated to 1.3.3 and noticed a strange issue when sending emails.

Any time a single or double quote is used in the email draft, once sent, RC is adding a backslash to the text. For example:

New Email Copy as follows:
This isn't a new test. This server's test is, "testing the email's test."

The recipient receives the above as the following:
This isn\'t a new test. This server\'s test is, \"testing the email\'s test.\"

(See screenshot)

This issue occurs when composing in HTML as well as plaintext!

Some web searching mentioned that it could be a php.ini setting with "magic_quotes_gpc" active, but this feature was removed as of PHP 5.4.0. I made no changes to my server or settings between the previous install of RC and the current install.

I wasn't able to find any mention of the issue here on the forums. Any help would be greatly appreciated!
Title: Re: 1.3.3 - Single Quote and Double Quote Rendering Backslashes
Post by: SKaero on January 08, 2018, 10:42:48 PM
I tired and can't reproduce the problem. What version of PHP are you using?
Title: Re: 1.3.3 - Single Quote and Double Quote Rendering Backslashes (SOLVED)
Post by: djkalima on January 08, 2018, 10:55:06 PM
Welp, just asking that question led me to a solution!

It looks like my domain was running on a legacy version of PHP (5.3.29). I switched it to the latest stable version availalible (5.6.21) and Boom! Problem disappeared.

I was originally misinformed by my host, stating we were running the latest version... when in reality, the latest version was "available" but not active.

Thank you!