php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16503 mail() provides \" or \' escaped characters for single and double quotes
Submitted: 2002-04-08 23:44 UTC Modified: 2002-04-09 04:16 UTC
From: carl-fox at surplusnet dot com Assigned:
Status: Not a bug Package: Mail related
PHP Version: 4.1.2 OS: linux
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
36 - 35 = ?
Subscribe to this entry?

 
 [2002-04-08 23:44 UTC] carl-fox at surplusnet dot com
mail() improperly escapes single and double quotes.  For example:   '   appears as   \'   (as when an apostrophe
is in the email text, like    " person's  automobile"  shows up as "person\'s automobile".  The email sent contains the escaped character with the \ in front of it instead of sending the character properly.   

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-08 23:48 UTC] carl-fox at surplusnet dot com
mail() improperly escapes single and double quotes.  For example:   '  
   appears as   \'   (as when an apostrophe
   is in the email text, like    " person's  automobile"  shows up as
   "person\'s automobile".  The email sent contains the escaped character
   with the \ in front of it instead
 [2002-04-09 04:16 UTC] sander@php.net
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php


 [2003-12-17 20:58 UTC] michael at internetmarketinggroup dot com
Sander,

this is a bug and has nothing to do with support. 
It shouldn't put escape characters in the e-mails.

I'm getting the same problem as carl-fox, and I'm running Win2k

Please respond with a fix.

Thanks
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 03 11:01:27 2024 UTC