We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
when I use koa-static 2.0.0 in windows, the render page's content is Malicious Path.
koa-static
Malicious Path
The text was updated successfully, but these errors were encountered:
i don't use windows, but a small, runnable example would be nice for those who do
Sorry, something went wrong.
koa-static": "^3.0.0"
app.use(serve(__dirname+'/public'));
when I use koa-static 3.0.0 in windows 7, the render page's content is Malicious Path.
koa-static": "^3.0.0" modify: return send(ctx, ctx.path.slice(1), opts) Win7 it is OK.
reson: window7,node.js v5.7.0 path.parse("/a.txt"); { root: '', dir: '', base: 'a.txt', ext: '.txt', name: 'a' }
window7,node.js v6.6.0 path.parse("/a.txt"); { root: '/', dir: '/', base: 'a.txt', ext: '.txt', name: 'a' }
Reference: nodejs/node#8293 #nodejs/node#8293
Please upgrade node.js
No branches or pull requests
when I use
koa-static
2.0.0 in windows, the render page's content isMalicious Path
.The text was updated successfully, but these errors were encountered: