Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/foo%2Fbar.txt returns /foo/bar.txt #138

Closed
sapphi-red opened this issue Jul 7, 2022 · 0 comments · Fixed by #149
Closed

/foo%2Fbar.txt returns /foo/bar.txt #138

sapphi-red opened this issue Jul 7, 2022 · 0 comments · Fixed by #149

Comments

@sapphi-red
Copy link

/foo%2Fbar.txt returns the same content with /foo/bar.txt.
Is this intended?

Reproduction

  1. Open https://stackblitz.com/edit/node-lhxxod?file=index.js
  2. Access https://node-lhxxod--3000.local.webcontainer.io/foo%2Fbar.txt on the right panel

Reason

try { pathname = decodeURIComponent(pathname) }

This is because decodeURIComponent is used instead of decodeURI here.

refs vitejs/vite#8804

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant