From 233f67b87edf0d063c0f56cece50c2f1bb1a31ff Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 11 Jan 2011 10:38:24 +0100 Subject: 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 --- web/template/pkg_comment_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/template/pkg_comment_form.php') 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); -- cgit v1.2.3-24-g4f1b