From 53f0c6244b540edd0c4bd12cba170d8ea014a0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?issue=E5=93=A5?= Date: Sun, 3 May 2020 19:03:44 +0800 Subject: [PATCH] encodeURIComponent file name for a.href --- themes/material/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/material/app.js b/themes/material/app.js index ec00cbf..fce55d4 100644 --- a/themes/material/app.js +++ b/themes/material/app.js @@ -347,7 +347,7 @@ function append_files_to_list(path, files) { `; } else { - var p = path + item.name; + var p = path + encodeURIComponent(item.name); const filepath = path + item.name; var c = "file"; // 当加载完最后一页后,才显示 README ,否则会影响滚动事件