Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions webrepl.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ ReplHttpServer.prototype.start = function(port) {
ReplHttpServer.prototype.route = function(req, res) {
var stream = this.stream;
var replServer = this.replServer;

if(req.url.includes('..')){
console.log("Error resolving context request: " + req.url);
res.writeHeader(500);
res.end();
}

req.on('error', function() { /* Ignore Errors */ });
res.on('error', function() { /* Ignore Errors */ });
Expand Down