Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

cvs: pearweb /public_html/bugs bug.php: msg#00052

php.pear.core

Subject: cvs: pearweb /public_html/bugs bug.php

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>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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