summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-01-11 10:38:24 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2011-01-19 21:18:47 +0100
commit233f67b87edf0d063c0f56cece50c2f1bb1a31ff (patch)
treed2109d6dcb0ef3b4200515148aa6d9310995d25b /web
parent60edcd04e52323050792252009512f7592f3b66c (diff)
downloadaur-233f67b87edf0d063c0f56cece50c2f1bb1a31ff.tar.gz
aur-233f67b87edf0d063c0f56cece50c2f1bb1a31ff.tar.xz
Do not overwrite package details when adding comments (fixes FS#22075).
Ensure that the "$row" variable isn't overwritten in "web/template/pkg_comment_form.php" during sending mail notifications when adding a comment. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r--web/template/pkg_comment_form.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkg_comment_form.php b/web/template/pkg_comment_form.php
index 70570da1..368d49bf 100644
--- a/web/template/pkg_comment_form.php
+++ b/web/template/pkg_comment_form.php
@@ -25,7 +25,7 @@ if (isset($_REQUEST['comment'])) {
array_push($bcc, $row['Email']);
}
- $q = 'SELECT Packages.Name ';
+ $q = 'SELECT Packages.* ';
$q.= 'FROM Packages ';
$q.= 'WHERE Packages.ID = ' . intval($_REQUEST['ID']);
$result = db_query($q, $dbh);