mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #419] Some folder names with special characters will raise a 404 error #226
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @52funny on GitHub (Jul 21, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/419
Problem
In some cases, a 404 error may occur. For example, I have a folder in my directory called
a&bwhich will be rendered asa&bon the front-end page, which will result in a 404 error on access.@52funny commented on GitHub (Jul 22, 2024):
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
atobfunction only accept a few ASCII characters, resulting in errors parsing strings beyond the0xffrange.index.js #L111