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

From: Date: Mon, 14 Jun 2004 07:03:31 +0000
Subject: #28766 [Bgs->Csd]: Addresses with "&" in it are not escaped!
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-60859@lists.php.net to get a copy of this message
ID: 28766 User updated by: bt at weberg dot de Reported By: bt at weberg dot de -Status: Bogus +Status: Closed Bug Type: Mail related Operating System: linux, debian PHP Version: Irrelevant New Comment: The problem is not related to php... sorry. Previous Comments: ------------------------------------------------------------------------ [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 (#60859) next »