cvs: peclweb /public_html package-stats-graph.php
| From: | Greg Beaver | Date: | Wed, 18 Oct 2006 04:15:56 +0000 |
| Subject: | cvs: peclweb /public_html package-stats-graph.php | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-6508@lists.php.net to get a copy of this message | ||
cellog Wed Oct 18 04:15:56 2006 UTC
Modified files:
/peclweb/public_html package-stats-graph.php
Log:
remove another potential sql injection vector
http://cvs.php.net/viewvc.cgi/peclweb/public_html/package-stats-graph.php?r1=1.18&r2=1.19&diff_format=u
Index: peclweb/public_html/package-stats-graph.php
diff -u peclweb/public_html/package-stats-graph.php:1.18
peclweb/public_html/package-stats-graph.php:1.19
--- peclweb/public_html/package-stats-graph.php:1.18 Wed Oct 18 00:29:31 2006
+++ peclweb/public_html/package-stats-graph.php Wed Oct 18 04:15:56 2006
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: Richard Heyes <richard@php.net> |
+----------------------------------------------------------------------+
- $Id: package-stats-graph.php,v 1.18 2006/10/18 00:29:31 cellog Exp $
+ $Id: package-stats-graph.php,v 1.19 2006/10/18 04:15:56 cellog Exp $
*/
/**
@@ -82,7 +82,7 @@
GROUP BY dyear, dmonth
ORDER BY dyear DESC, dmonth DESC",
(int) $_GET['pid'],
- $release_clause = $rid > 0 ? 'AND a.release_id = ' . $rid :
'');
+ $release_clause = $rid > 0 ? 'AND a.release_id = ' . (int) $rid :
'');
if ($result = $dbh->query($sql)) {
while ($row = $result->fetchRow(DB_FETCHMODE_ASSOC)) {