|
|
Choosing A Webhost: |
cvs: pearweb /public_html/bugs bug.php: msg#00052php.pear.core
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); } }
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | cvs: pearweb /public_html/bugs report.php, Pierre-Alain Joye |
|---|---|
| Next by Date: | cvs: pearweb /public_html/channels index.php, Lukas Smith |
| Previous by Thread: | cvs: pearweb /public_html/bugs bug.php, Daniel Convissor |
| Next by Thread: | cvs: pearweb /public_html/bugs bug.php report.php /public_html/bugs/include functions.inc, Pierre-Alain Joye |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |