sigoden/dufs

Some folder names with special characters will raise a 404 error

52funny opened this issue · 1 comments

Problem

In some cases, a 404 error may occur. For example, I have a folder in my directory called a&b which will be rendered as a&b on the front-end page, which will result in a 404 error on access.

image
image

Author your commit #421 solves some problems but creates some new ones. For example, when the folder is some non-ASCII form of string, it may cause garbled problems. The root cause is that the atob function only accept a few ASCII characters, resulting in errors parsing strings beyond the 0xff range.

index.js #L111

image