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

From: Date: Mon, 14 Jun 2004 06:47:08 +0000
Subject: #28766 [Opn->Bgs]: Addresses with "&" in it are not escaped!
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-60858@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: Open +Status: Bogus Bug Type: Mail related Operating System: linux, debian PHP Version: Irrelevant New Comment: It seems not to be a general problem... Previous Comments: ------------------------------------------------------------------------ [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 (#60858) next »