diff --git a/web/html/packages.php b/web/html/packages.php
index dc06c7e4..8f3b143d 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -10,6 +10,8 @@ check_sid(); # see if they're still logged in
# Set the title to the current query if required
if (isset($_GET['ID']) && ($pkgname = pkgname_from_id($_GET['ID']))) {
$title = $pkgname;
+} else if (isset($_GET['N'])) {
+ $title = $pkgname = $_GET['N'];
} else if (!empty($_GET['K'])) {
$title = __("Search Criteria") . ": " . $_GET['K'];
} else {
@@ -98,6 +100,18 @@ if (isset($_GET['ID'])) {
package_details($_GET['ID'], null);
}
}
+} else if (isset($_GET['N'])) {
+ include('pkg_search_form.php');
+ if (!$pkgid = pkgid_from_name($_GET['N'])) {
+ print __("Error trying to retrieve package details.")."
\n";
+ } else {
+ if (isset($_COOKIE["AURSID"])) {
+ package_details($pkgid, $_COOKIE["AURSID"]);
+ }
+ else {
+ package_details($pkgid, null);
+ }
+ }
} else {
if (!isset($_GET['K']) && !isset($_GET['SB'])) {
$_GET['SB'] = 'v';
diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php
index aed9ca8b..ac6e1de9 100644
--- a/web/template/pkg_comments.php
+++ b/web/template/pkg_comments.php
@@ -36,7 +36,7 @@ while (list($indx, $carr) = each($comments)) { ?>
10 && !isset($_GET['comments'])) {
echo '