[aur-dev] [PATCH 1/2] pkg_details.php: Fix link to voters if ID is unset

Lukas Fleischer archlinux at cryptocrack.de
Tue Jul 17 12:03:18 EDT 2012


When a package is requested by name, the "ID" request parameter might be
unset. Use the "ID" field of the query result instead.

Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 web/template/pkg_details.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index b4b52d5..6e19b3b 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -2,7 +2,7 @@
 $atype = account_from_sid($SID);
 $uid = uid_from_sid($SID);
 
-$pkgid = intval($_REQUEST['ID']);
+$pkgid = intval($row['ID']);
 
 $catarr = pkgCategories();
 
-- 
1.7.11.2



More information about the aur-dev mailing list