cvs: php-bugs-web /include functions.inc

From: Date: Wed, 17 Sep 2003 05:47:03 +0000
Subject: cvs: php-bugs-web /include functions.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-21041@lists.php.net to get a copy of this message
sniper Wed Sep 17 01:47:03 2003 EDT Modified files: /php-bugs-web/include functions.inc Log: Fix headers sent (spam-protection..) Index: php-bugs-web/include/functions.inc diff -u php-bugs-web/include/functions.inc:1.94 php-bugs-web/include/functions.inc:1.95 --- php-bugs-web/include/functions.inc:1.94 Tue Sep 16 17:58:51 2003 +++ php-bugs-web/include/functions.inc Wed Sep 17 01:47:03 2003 @@ -229,16 +229,17 @@ switch ($edit) { case 3: - $from = spam_protect(rinse($in['commentemail'])); + $from_addr = spam_protect(rinse($in['commentemail'])); $headers[] = array(" Comment by", $from); - $from = "\"$from\" <$mailfrom>"; + $from = "\"$from_addr\" <$mailfrom>"; break; case 2: - $from = spam_protect(txfield('email')); + $from_addr = spam_protect(txfield('email')); $headers[] = array(" User updated by", $from); - $from = "\"$from\" <$mailfrom>"; + $from = "\"$from_addr\" <$mailfrom>"; break; default: + $from_addr = spam_protect($from); $headers[] = array(" Updated by", $from); } @@ -349,8 +350,8 @@ "X-PHP-OS: " . stripslashes((($edit != 3) ? $in['php_os'] : $bug['php_os'])) . "\n" . "X-PHP-Status: " . stripslashes($new_status) . "\n" . "X-PHP-Old-Status: " . stripslashes($old_status) . "\n" . - "X-PHP-Reported-By: " . stripslashes($bug['email']) . "\n" . - "X-PHP-Updated-By: " . stripslashes($from) . "\n" . + "X-PHP-Reported-By: " . stripslashes(spam_protect(rinse($bug['email']))) . "\n" . + "X-PHP-Updated-By: " . stripslashes($from_addr) . "\n" . "In-Reply-To: <bug-$bug[id]@bugs.php.net>"); }

« previous php.mirrors (#21041) next »