diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php index 95f72cef..7a455c6e 100644 --- a/web/lib/aur.inc.php +++ b/web/lib/aur.inc.php @@ -230,7 +230,12 @@ function html_format_maintainers($maintainer, $comaintainers) { * @return string The generated HTML code for the action link */ function html_action_link($uri, $desc) { - $code = ''; + if (isset($_COOKIE["AURSID"])) { + $code = ''; + } else { + $code = ''; + } $code .= htmlspecialchars($desc) . ''; return $code; @@ -246,14 +251,19 @@ function html_action_link($uri, $desc) { * @return string The generated HTML code for the action link */ function html_action_form($uri, $action, $desc) { - $code = '
'; - $code .= ''; - $code .= ''; + if (isset($_COOKIE["AURSID"])) { + $code = ''; + $code .= ''; + $code .= ''; + } else { + $code = ''; + $code .= htmlspecialchars($desc) . ''; + } return $code; } diff --git a/web/template/pkgbase_actions.php b/web/template/pkgbase_actions.php index 757b0635..61ad18f5 100644 --- a/web/template/pkgbase_actions.php +++ b/web/template/pkgbase_actions.php @@ -9,7 +9,6 @@