cvs: php-bugs-web / report.php
| From: | Jani Taskinen | Date: | Mon, 22 Oct 2001 21:12:55 +0000 |
| Subject: | cvs: php-bugs-web / report.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-7165@lists.php.net to get a copy of this message | ||
sniper Mon Oct 22 17:12:55 2001 EDT
Modified files:
/php-bugs-web report.php
Log:
Make the initial report send to users have the correct url too.
Index: php-bugs-web/report.php
diff -u php-bugs-web/report.php:1.5 php-bugs-web/report.php:1.6
--- php-bugs-web/report.php:1.5 Fri Oct 19 18:55:29 2001
+++ php-bugs-web/report.php Mon Oct 22 17:12:55 2001
@@ -34,12 +34,12 @@
$sdesc = stripslashes($sdesc);
$ascii_report = "$report$sdesc\n\n".wordwrap($ldesc);
- $ascii_report.= "\n-- \nEdit bug report at: http://bugs.php.net/?id=$cid&edit=1\n";
-
+ $ascii_report.= "\n-- \nEdit bug report at: http://bugs.php.net/?id=$cid&edit=";
+
list($mailto,$mailfrom) = get_bugtype_mail($bug_type);
- if (mail($mailto, "Bug #$cid: $sdesc", $ascii_report, "From: $email\nX-PHP-Bug:
$cid\nMessage-ID: <bug-$cid@bugs.php.net>")) {
- @mail($email, "Bug #$cid: $sdesc", $ascii_report, "From: PHP Bug Database
<$mailfrom>\nX-PHP-Bug: $cid\nMessage-ID: <bug-$cid@bugs.php.net>");
+ if (mail($mailto, "Bug #$cid: $sdesc", $ascii_report."1\n", "From:
$email\nX-PHP-Bug: $cid\nMessage-ID: <bug-$cid@bugs.php.net>")) {
+ @mail($email, "Bug #$cid: $sdesc", $ascii_report."2\n", "From: PHP
Bug Database <$mailfrom>\nX-PHP-Bug: $cid\nMessage-ID: <bug-$cid@bugs.php.net>");
header("Location:
report.php?cmd=thankyou&cid=$cid&mailto=".urlencode($mailto));