[aur-dev] [PATCH 1/2] pkg_details.php: Fix link to voters if ID is unset
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@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
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> --- web/template/account_edit_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php index fd58f84..7da8e33 100644 --- a/web/template/account_edit_form.php +++ b/web/template/account_edit_form.php @@ -3,7 +3,7 @@ <input type="hidden" name="Action" value="<?php echo $A ?>" /> <?php if ($UID): ?> <input type="hidden" name="ID" value="<?php echo $UID ?>" /> - <input type="hidden" name="token" value="<?php print htmlspecialchars($_COOKIE['AURSID']) ?>" /> </div> + <input type="hidden" name="token" value="<?php print htmlspecialchars($_COOKIE['AURSID']) ?>" /> <?php endif; ?> </fieldset> <table> -- 1.7.11.2
participants (1)
-
Lukas Fleischer