made html file unreachable

This commit is contained in:
catvayor 2023-06-06 15:46:53 +02:00
parent c9a27aa9ff
commit 88ecea941f
2 changed files with 3 additions and 3 deletions

View file

@ -54,9 +54,9 @@ var server = http.createServer(option, function(req, res){
if(q.pathname.includes(".."))
filename = "static/dotdot.html";
if(q.pathname.startsWith("/conscrit/")){
id = q.pathname.substring("/conscrit/".length);
return fs.readFile("static/conscrit.html", 'utf8', function(err, data){
if(q.pathname.startsWith("/tracking/")){
id = q.pathname.substring("/tracking/".length);
return fs.readFile("static/tracking/conscrit.html", 'utf8', function(err, data){
if(err)
throw new Error("where conscrit.html is !?");