fixing encoding for links

This commit is contained in:
John Campbell
2019-10-24 11:35:41 -06:00
parent cebe7f5194
commit 222ab415bf
+1 -1
View File
@@ -405,7 +405,7 @@ $(function(){
}
function renderFileRow(data) {
var $link = $('<a class="name" />')
.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 = <?php echo $allow_direct_link?'true':'false'; ?>;
if (!data.is_dir && !allow_direct_link) $link.css('pointer-events','none');