svn: /web/php-bugs/trunk/www/ bug.php

From: Date: Tue, 09 Mar 2010 17:45:54 +0000
Subject: svn: /web/php-bugs/trunk/www/ bug.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-7535@lists.php.net to get a copy of this message
jani Tue, 09 Mar 2010 17:45:54 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=296002 Log: - Cleanup and fixed bug #51217 (Email names blank) Bug: http://bugs.php.net/51217 (Assigned) Email names blank Changed paths: U web/php-bugs/trunk/www/bug.php Modified: web/php-bugs/trunk/www/bug.php =================================================================== --- web/php-bugs/trunk/www/bug.php 2010-03-09 17:14:55 UTC (rev 296001) +++ web/php-bugs/trunk/www/bug.php 2010-03-09 17:45:54 UTC (rev 296002) @@ -162,9 +162,6 @@ } } - // Defaults to '' if not logged in - $_POST['in']['handle'] = $auth_user->handle; - $ncomment = trim($_POST['ncomment']); if (!$ncomment) { $errors[] = 'You must provide a comment.'; @@ -183,7 +180,6 @@ $_POST['in']['name'] = ''; } else { $_POST['in']['commentemail'] = $auth_user->email; - $_POST['in']['handle'] = $auth_user->handle; $_POST['in']['name'] = $auth_user->name; } @@ -191,17 +187,13 @@ } while (false); - if (isset($auth_user) && $auth_user) { - $from = $auth_user->email; - } else { - $from = ''; - } + $from = spam_protect($_POST['in']['commentemail'], 'text'); } else { $from = ''; } } elseif (isset($_POST['ncomment']) && isset($_POST['preview']) && $edit == 3) { $ncomment = trim($_POST['ncomment']); - $from = spam_protect($_POST['in']['commentemail']); + $from = $_POST['in']['commentemail']; } elseif (isset($_POST['in']) && !isset($_POST['preview']) && $edit == 2) { // Edits submitted by original reporter for old bugs

« previous php.webmaster (#7535) next »