|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28766 Addresses with "&" in it are not escaped!
Submitted: 2004-06-14 08:33 UTC Modified: 2004-06-14 09:14 UTC
From: bt at weberg dot de Assigned:
Status: Not a bug Package: Mail related
PHP Version: Irrelevant OS: linux, debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
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:
Solve the problem:
15 + 20 = ?
Subscribe to this entry?

 [2004-06-14 08:33 UTC] bt at weberg dot de
I thought that the addresses passed to sendmail where escaped. It seems not to be. I have a problem with an email-receipient who gave me an address with an "&" in it an I got an error from the local shell-interpreter. The shell could not find the program...

Reproduce code:
Create a testscript with something like
  mail("test&", "Error, or what?", "...");

Expected result:
Sending the mail...

Actual result:
sh: line 1: command not found
can't close /usr/sbin/sendmail


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-14 08:47 UTC] bt at weberg dot de
It seems not to be a general problem...
 [2004-06-14 09:03 UTC] bt at weberg dot de
The problem is not related to php... sorry.
 [2004-06-14 09:14 UTC]
Closed is used for real bugs that have been fixed.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Mar 22 00:03:39 2023 UTC