Re: cvs: pearweb /public_html/bugs bug.php
| From: | Daniel Convissor | Date: | Tue, 29 Jun 2004 18:20:44 +0000 |
| Subject: | Re: cvs: pearweb /public_html/bugs bug.php | ||
| References: | 1 | Groups: | php.pear.webmaster |
| Request: | Send a blank email to pear-webmaster+get-2647@lists.php.net to get a copy of this message | ||
Hi Helgi:
On Tue, Jun 29, 2004 at 06:14:04PM -0000, Helgi Þormar Þorbjörnsson wrote:
> dufuz Tue Jun 29 14:14:04 2004 EDT
>
> Modified files:
> /pearweb/public_html/bugs bug.php
... snip ...
> + echo "<strong>[",format_date($ts),"] ";
> $handle =& $dbh->getOne('SELECT handle FROM users WHERE email =
> '.$dbh->quoteSmart($email).' AND showemail = 0');
> if (!is_null($handle)) {
> - echo $handle."</b>\n";
> + echo $handle."</strong>\n";
> } else {
> echo spam_protect(htmlspecialchars($email))."</b>\n";
> }
This protection doesn't seem worth the extra database query.
If you really want to implement it, do a join to "users" in the first
query and get it over with there.
--Dan
PS: Noticed a subsequent commit cought the </b> to </strong> conversion
for the else.
PPS: So, I guess I don't need to look over those patches you emailed me.
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409