summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorMarcel Korpel <marcel.korpel@gmail.com>2015-08-17 00:08:52 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-08-17 04:20:45 +0200
commit095986b44974c569b36d34dd26902e910ccc7d8b (patch)
treecb4f0a10b5cd680fd06953f3c7431490a2e8da2a /web/html
parent60433a930d6701cef1133cdb344fc76f24693636 (diff)
downloadaur-095986b44974c569b36d34dd26902e910ccc7d8b.tar.gz
aur-095986b44974c569b36d34dd26902e910ccc7d8b.tar.xz
Do not allow empty comments
Fixes FS#45870. Signed-off-by: Marcel Korpel <marcel.korpel@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/pkgbase.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/html/pkgbase.php b/web/html/pkgbase.php
index 15818699..bc32e43c 100644
--- a/web/html/pkgbase.php
+++ b/web/html/pkgbase.php
@@ -107,8 +107,7 @@ if (check_token()) {
list($ret, $output) = pkgbase_set_comaintainers($base_id, explode("\n", $_POST['users']));
} elseif (current_action("do_AddComment")) {
$uid = uid_from_sid($_COOKIE["AURSID"]);
- pkgbase_add_comment($base_id, $uid, $_REQUEST['comment']);
- $ret = true;
+ list($ret, $output) = pkgbase_add_comment($base_id, $uid, $_REQUEST['comment']);
$fragment = '#news';
} elseif (current_action("do_EditComment")) {
list($ret, $output) = pkgbase_edit_comment($_REQUEST['comment']);