summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2012-01-22 05:03:01 +0100
committerMichael Tänzer <neo@nhng.de>2012-01-22 05:03:01 +0100
commit1a4fb2fe639c0f973560f2fa088e10ae1d3aa1f8 (patch)
treebfb2647ddc7729bc907afb3b8ce9615a0720a0df
parent9d08d01161831ca095ab408f8055d76af1d4a85a (diff)
downloadcacert-devel-1a4fb2fe639c0f973560f2fa088e10ae1d3aa1f8.tar.gz
cacert-devel-1a4fb2fe639c0f973560f2fa088e10ae1d3aa1f8.tar.xz
cacert-devel-1a4fb2fe639c0f973560f2fa088e10ae1d3aa1f8.zip
bug 1004: make script executable and quote identifiers in SQL query
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rwxr-xr-x[-rw-r--r--]scripts/cron/refresh_stats.php0
-rw-r--r--www/stats.php2
2 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cron/refresh_stats.php b/scripts/cron/refresh_stats.php
index 70fa062..70fa062 100644..100755
--- a/scripts/cron/refresh_stats.php
+++ b/scripts/cron/refresh_stats.php
diff --git a/www/stats.php b/www/stats.php
index 45ba38b..1599e17 100644
--- a/www/stats.php
+++ b/www/stats.php
@@ -24,7 +24,7 @@
* @return array
*/
function getData() {
- $sql = 'select * from statscache order by timestamp desc limit 1';
+ $sql = 'select * from `statscache` order by `timestamp` desc limit 1';
$res = mysql_query($sql);
if ($res && mysql_numrows($res) > 0) {
$ar = mysql_fetch_assoc($res);