Skip to content

Commit

Permalink
Merge branch 'main-dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-ev committed Jul 9, 2024
2 parents 60927b1 + 4ea98d7 commit 2ac2857
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core2/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ module.exports = function () {
app.set("views", global.appRoot); //Specify the views folder
app.set("view engine", "pug"); //View engine is Pug

// prevent access to general admin and folders meta.txt
app.use(function (req, res, next) {
if (req.url.includes("meta.txt"))
if (req.url.includes("/meta.txt"))
res.status(403).send(`Access not allowed.`);
else next();
});
Expand Down

0 comments on commit 2ac2857

Please sign in to comment.