com web/bugs: - Fixed empty "From: " on initial report mail: www/report.php

From: Date: Wed, 23 May 2012 17:48:30 +0000
Subject: com web/bugs: - Fixed empty "From: " on initial report mail: www/report.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-13577@lists.php.net to get a copy of this message
Commit: afa03c110825122bf264b2dc8b7502e57536709c Author: Felipe Pena <felipensp@gmail.com> Wed, 23 May 2012 14:48:30 -0300 Parents: 1a9273b8d2164563d711855da0522f12f76b4c9f Branches: master Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=afa03c110825122bf264b2dc8b7502e57536709c Log: - Fixed empty "From: " on initial report mail Changed paths: M www/report.php Diff: diff --git a/www/report.php b/www/report.php index 60f7a2f..3030ff0 100644 --- a/www/report.php +++ b/www/report.php @@ -225,9 +225,15 @@ OUTPUT; $redirectToPatchAdd = true; } } + + if (empty($_POST['in']['handle'])) { + $mailfrom = spam_protect($_POST['in']['email'], 'text'); + } else { + $mailfrom = $_POST['in']['handle']; + } $report = <<< REPORT -From: {$_POST['in']['handle']} +From: {$mailfrom} Operating system: {$_POST['in']['php_os']} PHP version: {$_POST['in']['php_version']} Package: {$package_name}

« previous php.webmaster (#13577) next »