summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
Diffstat (limited to 'web/html')
-rw-r--r--web/html/packages.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/html/packages.php b/web/html/packages.php
index e03a099..a9f6263 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -99,6 +99,12 @@ if (check_token()) {
list($ret, $output) = pkg_change_category($pkgid, $atype);
}
+ if (isset($_REQUEST['comment'])) {
+ $uid = uid_from_sid($_COOKIE["AURSID"]);
+ add_package_comment($pkgid, $uid, $_REQUEST['comment']);
+ $ret = true;
+ }
+
if ($ret) {
/* Redirect back to package page on success. */
header('Location: ' . get_pkg_uri($pkgname));