fix: couldn't download files with % in the name
Massimo Melina committed
Jan 13, 2023 at 19:33 UTC
d3a8172bdad3a3f568fd2bbb28484b699e8a0dcd
1 file changed
+1
-1
frontend/src/BrowseFiles.ts
+1
-1
@@ -114,7 +114,7 @@ const Entry = memo(function(entry: DirEntry & { midnight: Date }) {
114
})
115
116
function fixUrl(s:string) {
117
- return s.replace(/#/g, encodeURIComponent)
117
+ return s.replace(/[#%]/g, encodeURIComponent)
118
}
119
120
const EntryProps = memo(function(entry: DirEntry & { midnight: Date }) {