[aur-dev] [PATCH] pkg_details: Use correct clone URL
Johannes Löthberg
johannes at kyriasis.com
Mon Jun 8 18:04:47 UTC 2015
The clone URLs should use the pkgbase name, not the pkgname itself
Reported-by: Jonathan Steel <jsteel at archlinux.org>
Signed-off-by: Johannes Löthberg <johannes at kyriasis.com>
---
web/template/pkg_details.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index ceece87..14f8847 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -1,8 +1,8 @@
<?php
$cgit_uri = config_get('options', 'cgit_uri');
-$git_clone_uri_anon = sprintf(config_get('options', 'git_clone_uri_anon'), htmlspecialchars($row['Name']));
-$git_clone_uri_priv = sprintf(config_get('options', 'git_clone_uri_priv'), htmlspecialchars($row['Name']));
+$git_clone_uri_anon = sprintf(config_get('options', 'git_clone_uri_anon'), htmlspecialchars($row['BaseName']));
+$git_clone_uri_priv = sprintf(config_get('options', 'git_clone_uri_priv'), htmlspecialchars($row['BaseName']));
$uid = uid_from_sid($SID);
--
2.4.2
More information about the aur-dev
mailing list