cvs: pearweb /public_html/bugs bug.php
| From: | Pierre-Alain Joye | Date: | Sat, 18 Mar 2006 17:59:57 +0000 |
| Subject: | cvs: pearweb /public_html/bugs bug.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-39184@lists.php.net to get a copy of this message | ||
pajoye Sat Mar 18 17:59:57 2006 UTC
Modified files:
/pearweb/public_html/bugs bug.php
Log:
- #7154, display the name of the pear devs as well
http://cvs.php.net/viewcvs.cgi/pearweb/public_html/bugs/bug.php?r1=1.105&r2=1.106&diff_format=u
Index: pearweb/public_html/bugs/bug.php
diff -u pearweb/public_html/bugs/bug.php:1.105 pearweb/public_html/bugs/bug.php:1.106
--- pearweb/public_html/bugs/bug.php:1.105 Sat Mar 18 01:15:32 2006
+++ pearweb/public_html/bugs/bug.php Sat Mar 18 17:59:57 2006
@@ -15,7 +15,7 @@
* @package Bugs
* @copyright Copyright (c) 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: bug.php,v 1.105 2006/03/18 01:15:32 pajoye Exp $
+ * @version $Id: bug.php,v 1.106 2006/03/18 17:59:57 pajoye Exp $
*/
/*
@@ -188,6 +188,7 @@
$comment_name = isset($_POST['in']['comment_name']) ?
htmlspecialchars(strip_tags($_POST['in']['comment_name'])) : '';
+
if (!preg_match("/[.\\w+-]+@[.\\w-]+\\.\\w{2,}/i",
$_POST['in']['commentemail'])) {
$errors[] = "You must provide a valid email address.";
}
@@ -297,7 +298,7 @@
$errors[] = "You have to login first in order to edit the bug report.";
$errors[] = 'Tip: log in via another browser window then resubmit the form in this
window.';
}
-
+ $comment_name = $auth_user->name;
if (empty($_POST['ncomment'])) {
$ncomment = '';
} else {
@@ -376,11 +377,12 @@
if (!empty($ncomment)) {
$query = 'INSERT INTO bugdb_comments' .
- ' (bug, email, ts, comment) VALUES (' .
+ ' (bug, email, ts, comment, reporter_name) VALUES (' .
" $id," .
" '" . escapeSQL($from) . "'," .
' NOW(),' .
- " '" . escapeSQL($ncomment) . "')";
+ " '" . escapeSQL($ncomment) . "'," .
+ " '" . escapeSQL($comment_name) . "')";
$dbh->query($query);
}
}