From cd09b476cbbfa8f90f0f86e67da5414d21c8ad10 Mon Sep 17 00:00:00 2001 From: Dan Untenzu <untenzu@webit.de> Date: Mon, 20 Feb 2017 16:18:19 +0100 Subject: [PATCH] [BUGFIX] Admin page: Prefix path to download links The download links in the admin page have no path prefix and therefore all installations with within a subdirectory create no-working links. Prefix the JIRAFEAU_ABSPREFIX to create working URLs. Refs #108 --- lib/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.php b/lib/functions.php index 85651ba..bac444b 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -594,7 +594,7 @@ function jirafeau_admin_list($name, $file_hash, $link_hash) /* Print link informations. */ echo '<tr>'; echo '<td>' . - '<strong><a id="upload_link" href="/f.php?h='. htmlspecialchars($node) .'" title="' . + '<strong><a id="upload_link" href="' . JIRAFEAU_ABSPREFIX . 'f.php?h='. htmlspecialchars($node) .'" title="' . t('Download page') . '">' . htmlspecialchars($l['file_name']) . '</a></strong>'; echo '</td>'; echo '<td>' . $l['mime_type'] . '</td>'; -- 2.43.0