Bug #18544: Rogue > added to variable on mail()

From: Date: Wed, 24 Jul 2002 17:28:51 +0000
Subject: Bug #18544: Rogue > added to variable on mail()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15063@lists.php.net to get a copy of this message
From:             cathy@injuryfree.com
Operating system: Linux RedHat 7.2
PHP version:      4.1.2
PHP Bug Type:     Variables related
Bug description:  Rogue > added to variable on mail()

With this script:

<?php

$mail2 = "Greetings,\n\n";
$mail2 .= "Your employer has requested that you take an ergonomic survey.
This survey will help Some Company, Inc., to figure out how to better
shape your work environment so it is more comfortable for you. You can
take this survey online, at your earliest convenience. (Please note that
we cannot process orders until all surveys are returned.)\n\n";

$mail2 .= "To take your survey, click the link below. If you have
difficulties, log in manually using the provided username and
password.\n\n";
$mail2 .= "Some kind of url\n\n";
$mail2 .= "Username: username\n";
$mail2 .= "Password: password\n\n";
$mail2 .= "From the page above you can choose to take the survey online,
or download and print it out to fax in to our offices.\n\n";
$mail2 .= "If you have any trouble logging in, please try to copy and
paste your username and password directly from this email. If that still
doesn't work, please feel free to call or write for assistance.\n\n";
$mail2 .= "Thank you for your participation! We look forward to working
with you.\n\n";
$mail2 .= "Some User\nSome Company, Inc.";	

echo $mail2;

mail('email address','test mail problem',$mail2,'From: someemail
address');

?>

If you reproduce that script you will see that on the line "From the page
above..." it inserts a > before "From". 
-- 
Edit bug report at http://bugs.php.net/?id=18544&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=18544&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=18544&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=18544&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=18544&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18544&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=18544&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=18544&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=18544&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=18544&r=globals



Thread (6 messages)

« previous php.bugs (#15063) next »