cvs: php-bugs-web / report.php /include functions.inc
| From: | Philip Olson | Date: | Thu, 12 Feb 2009 22:11:38 +0000 |
| Subject: | cvs: php-bugs-web / report.php /include functions.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-3820@lists.php.net to get a copy of this message | ||
philip Thu Feb 12 22:11:38 2009 UTC
Modified files:
/php-bugs-web report.php
/php-bugs-web/include functions.inc
Log:
Make PHP bug #46928 our test bug (won't send out emails and such)
http://cvs.php.net/viewvc.cgi/php-bugs-web/report.php?r1=1.73&r2=1.74&diff_format=u
Index: php-bugs-web/report.php
diff -u php-bugs-web/report.php:1.73 php-bugs-web/report.php:1.74
--- php-bugs-web/report.php:1.73 Thu Nov 20 17:19:24 2008
+++ php-bugs-web/report.php Thu Feb 12 22:11:38 2009
@@ -182,17 +182,19 @@
$extra_headers.= "X-PHP-Status: Open\n";
$extra_headers.= "Message-ID: <bug-$cid@bugs.php.net>";
+ if (DEVBOX || $cid === 46928) {
+ header("Location: http://bugs.php.net/bug.php?id=$cid&thanks=4&devbox=1");
+ exit;
+ }
+
// mail to appropriate mailing lists
- if (!DEVBOX && mail($mailto, "#$cid [NEW]: $sdesc", $ascii_report."1\n--
\n$dev_extra", $extra_headers)) {
+ if (mail($mailto, "#$cid [NEW]: $sdesc", $ascii_report."1\n-- \n$dev_extra",
$extra_headers)) {
// mail to reporter
@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: bug.php?id=$cid&thanks=4");
exit;
- } elseif(DEVBOX) {
- header("Location: bug.php?id=$cid&thanks=4");
- exit;
} else {
commonHeader("Report - Error");
echo "<pre>\n";
http://cvs.php.net/viewvc.cgi/php-bugs-web/include/functions.inc?r1=1.256&r2=1.257&diff_format=u
Index: php-bugs-web/include/functions.inc
diff -u php-bugs-web/include/functions.inc:1.256 php-bugs-web/include/functions.inc:1.257
--- php-bugs-web/include/functions.inc:1.256 Thu Feb 5 21:06:12 2009
+++ php-bugs-web/include/functions.inc Thu Feb 12 22:11:38 2009
@@ -355,7 +355,7 @@
$subj = "#{$bug['id']} [{$tla[$bug['status']]}]: ";
}
- if (!DEVBOX) {
+ if (!DEVBOX && $bug['id'] != '46928') {
# the user gets sent mail with an envelope sender that ignores bounces
@mail($bug['email'],
"Bug " . rinse($subj) . txfield('sdesc'),