#318 - Escaped quotes shown in emails
Type Defect
Status Invalid
Milestone 3.0.7
Version -
Component -
Priority Normal
Severity Normal
Owner John Hobson
Assigned to -
Reported 11 years ago
Updated 10 years ago
Votes 0
Related tickets
Proposed time
Worked time

I added a new ticket to a project to which I was subscribed.

I received an email titled 'New ticket #1 (Ticket Name) on project Project 1'

Within the body of the email quotation marks were shown as escaped:

A new logo is required that places more emphasis on the \'Dog\' and less on the \'Cat\'

It should be more dynamic.

The quotation marks should not be escaped

Ticket History

11 years and 1 month ago by Ian Littman

I couldn't reproduce the problem. With the exact same text, I get no leading slashes. My guess is that it's a server config issue; I'm running stock PHP 5.4.12.

11 years and 1 month ago by Jack

I also cannot reproduce the issue. What version of PHP are you using?

11 years and 1 month ago by John Hobson

I'm on 5.3.21

I've put a phpinfo() page up here if it's of help: http://support.damselflydevelopment.com/phpinfo.php

The escaped quotes are also showing in the interface, see http://hob.so/NEVg

This is what the email looks like: http://hob.so/NFWc

Jack closed as Invalid 11 years and 1 month ago

You appear to have magic_quotes_gpc turn on, this causes PHP to addslashesuser inputted data.

Check out the PHP.net page for disabling magic quotes.

11 years and 1 month ago by John Hobson

I was having trouble in disabling magic_quotes_gpc on my shared hosting. I don't have access to php.ini and putting it in .htaccess gave a 500 error.

However I found another solution via php.net, see example 2 at http://us.php.net/manual/en/security.magicquotes.disabling.php

I put that code in index.php and now it's working fine. I'm sure there's a better place to put it within the avalon framework, but that will do as a quick and dirty for now.

Perhaps this fix can be implemented in a future version to make it less reliant on hosting config?