diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2015-12-12 18:28:42 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-12-13 10:22:58 +0100 |
commit | e45609cf6645e650b8bafccd6860dec6aa9bb547 (patch) | |
tree | e090672dfc487a0bad4ef1dc3f180d42bbaca2b5 /web/lib/pkgreqfuncs.inc.php | |
parent | 5931d5ceec133ad1eee33faee96be061e011dacd (diff) | |
download | aur-e45609cf6645e650b8bafccd6860dec6aa9bb547.tar.gz aur-e45609cf6645e650b8bafccd6860dec6aa9bb547.tar.xz |
notify: Do not pass notification texts via pipes
Directly retrieve comments from the database instead of additionally
passing them via stdin.
Fixes FS#46742.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/lib/pkgreqfuncs.inc.php')
-rw-r--r-- | web/lib/pkgreqfuncs.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/pkgreqfuncs.inc.php b/web/lib/pkgreqfuncs.inc.php index c1a49311..cf56663b 100644 --- a/web/lib/pkgreqfuncs.inc.php +++ b/web/lib/pkgreqfuncs.inc.php @@ -158,7 +158,7 @@ function pkgreq_file($ids, $type, $merge_into, $comments) { if ($type === 'merge') { $params[] = $merge_into; } - notify($params, $comments); + notify($params); $auto_orphan_age = config_get('options', 'auto_orphan_age'); $auto_delete_age = config_get('options', 'auto_delete_age'); @@ -233,7 +233,7 @@ function pkgreq_close($id, $reason, $comments, $auto_close=false) { $dbh->exec($q); /* Send e-mail notifications. */ - notify(array('request-close', $uid, $id, $reason), $comments); + notify(array('request-close', $uid, $id, $reason)); return array(true, __("Request closed successfully.")); } |