Skip to content
This repository was archived by the owner on Mar 17, 2019. It is now read-only.

Commit 61259d0

Browse files
committed
Security and url fix
1 parent b67024d commit 61259d0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.idea/workspace.xml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ http.createServer((req, res) => {
104104
});
105105
});
106106
} else {
107-
req.url.replace(/(.+\.json)|(index.js)/g);
107+
req.url = req.url.replace(/(.+\.json)|(index.js)/g);
108108
fs.readFile('./' + req.url, (error, data) => {
109109
res.end(data);
110110
});

0 commit comments

Comments
 (0)