mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
60edcd04e5
commit
233f67b87e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue