summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-06-08 20:04:47 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-06-08 21:24:46 +0200
commit3b9cb66a1e417fe68fa44ac6eb24c5ee2c6a0bc4 (patch)
treecb84a2a0d02da100ad7391241c13c5d1ed796481
parentfcbfaf6a373eefdf84311da0326c1af28eb7edc3 (diff)
downloadaur-3b9cb66a1e417fe68fa44ac6eb24c5ee2c6a0bc4.tar.gz
aur-3b9cb66a1e417fe68fa44ac6eb24c5ee2c6a0bc4.tar.xz
pkg_details: Use correct clone URL
The clone URLs should use the pkgbase name, not the pkgname itself Reported-by: Jonathan Steel <jsteel@archlinux.org> Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r--web/template/pkg_details.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index ceece87b..14f88479 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);