You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Directory or file name with "#" or "?" does not work properly.
For an example, I have a directory named DL#20230623(or DL?20230623), but actually when I try to access http://0.0.0.0/DL#20230623/(or http://0.0.0.0/DL?0230623/), it return contents which in directory DL(or 404).
I guess it because in a standard URL, string after ? or # is not in path part.
Library version
14.2.0
Node version
20.3.0
The text was updated successfully, but these errors were encountered:
abubakriz
added a commit
to abubakriz/serve-handler
that referenced
this issue
Jul 31, 2024
When a file url has certain symbols like number sign (#), it doesn't encode them, which makes the browser fail to navigate to the file, thinking it is a document section. This commit fixes that by encoding urls using the built-in encodeURIComponent function.
Fixesvercel#120, vercel#205, vercel/serve#726, and vercel/serve#774
Description
Directory or file name with "#" or "?" does not work properly.
For an example, I have a directory named
DL#20230623
(orDL?20230623
), but actually when I try to accesshttp://0.0.0.0/DL#20230623/
(orhttp://0.0.0.0/DL?0230623/
), it return contents which in directoryDL
(or 404).I guess it because in a standard URL, string after
?
or#
is not in path part.Library version
14.2.0
Node version
20.3.0
The text was updated successfully, but these errors were encountered: