Commit 233f67b8 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

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: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 60edcd04
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment