From 222ab415bfba52eea748c0a9768d05f80610d49d Mon Sep 17 00:00:00 2001 From: John Campbell Date: Thu, 24 Oct 2019 11:35:41 -0600 Subject: [PATCH] fixing encoding for links --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 9921a01..03d165b 100644 --- a/index.php +++ b/index.php @@ -405,7 +405,7 @@ $(function(){ } function renderFileRow(data) { var $link = $('') - .attr('href', data.is_dir ? '#' + encodeURIComponent(data.path) : './'+ encodeURIComponent(data.path)) + .attr('href', data.is_dir ? '#' + encodeURIComponent(data.path) : './' + data.path) .text(data.name); var allow_direct_link = ; if (!data.is_dir && !allow_direct_link) $link.css('pointer-events','none');