#28766 [Csd->Bgs]: Addresses with "&" in it are not escaped!

From: Date: Mon, 14 Jun 2004 07:14:09 +0000
Subject: #28766 [Csd->Bgs]: Addresses with "&" in it are not escaped!
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-60860@lists.php.net to get a copy of this message
ID: 28766 Updated by: magnus@php.net Reported By: bt at weberg dot de -Status: Closed +Status: Bogus Bug Type: Mail related Operating System: linux, debian PHP Version: Irrelevant New Comment: Closed is used for real bugs that have been fixed. Previous Comments: ------------------------------------------------------------------------ [2004-06-14 09:03:30] bt at weberg dot de The problem is not related to php... sorry. ------------------------------------------------------------------------ [2004-06-14 08:47:07] bt at weberg dot de It seems not to be a general problem... ------------------------------------------------------------------------ [2004-06-14 08:33:49] bt at weberg dot de Description: ------------ 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 <?php mail("test&script@my.domain.de", "Error, or what?", "..."); ?> Expected result: ---------------- Sending the mail... Actual result: -------------- sh: line 1: script@my.domain.de: command not found can't close /usr/sbin/sendmail ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28766&edit=1

« previous php.bugs (#60860) next »