summaryrefslogtreecommitdiffstats
path: root/web/lib/aurjson.class.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-08-22 08:17:26 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-08-22 08:17:26 +0200
commit53a31865f41db7315dc5c99e1b100f397ef80b1a (patch)
tree2d359e3f06f4bd038a9bdc9034e8b92903e1236a /web/lib/aurjson.class.php
parentdad42297c7fe5404b2b7c65cd350b7ea4a8ac865 (diff)
downloadaur-53a31865f41db7315dc5c99e1b100f397ef80b1a.tar.gz
aur-53a31865f41db7315dc5c99e1b100f397ef80b1a.tar.xz
RPC: Fix info queries when using package IDs
Info queries using package IDs were no longer working due to commit c6d84b3a8df10c522d79c754d4f73cb2a352586f, which introduced a table join in process_query(), thus making the "ID" column ambiguous. Fix this by explicitly specifying the table to use. Fixes FS#25696. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/aurjson.class.php')
-rw-r--r--web/lib/aurjson.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php
index 277c824e..b5963595 100644
--- a/web/lib/aurjson.class.php
+++ b/web/lib/aurjson.class.php
@@ -203,7 +203,7 @@ class AurJSON {
// just using sprintf to coerce the pqd to an int
// should handle sql injection issues, since sprintf will
// bork if not an int, or convert the string to a number 0
- $where_condition = "ID={$pqdata}";
+ $where_condition = "Packages.ID={$pqdata}";
}
else {
$where_condition = sprintf("Name=\"%s\"",