From 88ecea941f0dea693418149c1f5bc8f92f70458d Mon Sep 17 00:00:00 2001 From: catvayor Date: Tue, 6 Jun 2023 15:46:53 +0200 Subject: [PATCH] made html file unreachable --- static/{ => tracking}/conscrit.html | 0 traque.js | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename static/{ => tracking}/conscrit.html (100%) diff --git a/static/conscrit.html b/static/tracking/conscrit.html similarity index 100% rename from static/conscrit.html rename to static/tracking/conscrit.html diff --git a/traque.js b/traque.js index 43a10f7..9e633df 100644 --- a/traque.js +++ b/traque.js @@ -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 !?");