-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Description
The example server.js:
var staticHandler = function(request, response) {
var path = request.url;
fs.readFile(__dirname + path, function(err, content) {
doesn't validate the url, so there is nothing stopping it from being e.g. /../spec/server.key
(given a few lines later). Given that people are likely to copy the example, setting a safe precedent might be a good idea! :-)
Metadata
Metadata
Assignees
Labels
No labels