|
From: Benjamin C. <bc...@us...> - 2002-04-10 18:38:20
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv1980
Modified Files:
bug.php
Log Message:
Fixed a bug with slashes included in the subject lines of bug change emails
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -r1.96 -r1.97
--- bug.php 9 Apr 2002 23:25:25 -0000 1.96
+++ bug.php 10 Apr 2002 15:26:35 -0000 1.97
@@ -257,8 +257,9 @@
'assignedto_stat' => $assignedtostat
));
- mail($toemail,"[Bug {$buginfo['bug_id']}] ".($newbug ? 'New' : 'Changed').
- ' - '.(!empty($cf['title']) ? $cf['title'] : $buginfo['title']),
+ mail($toemail,
+ "[Bug {$buginfo['bug_id']}] ".($newbug ? 'New' : 'Changed').' - '.
+ stripslashes((!empty($cf['title']) ? $cf['title'] : $buginfo['title'])),
$t->fetch($template),
sprintf("From: %s\nReply-To: %s\nErrors-To: %s\nContent-Type: text/plain; charset=%s\nContent-Transfer-Encoding: 8bit\n", ADMIN_EMAIL, ADMIN_EMAIL,
ADMIN_EMAIL, $STRING['lang_charset']));
|