mirror of
https://github.com/Wessel/kirbe.git
synced 2026-06-08 14:10:13 +02:00
Fix
This commit is contained in:
@@ -13,7 +13,7 @@ module.exports = (baseDir, indexFile) => {
|
|||||||
let requestedPath = req.parsedUrl.pathname.replace(/\/.\.\//g, '');
|
let requestedPath = req.parsedUrl.pathname.replace(/\/.\.\//g, '');
|
||||||
let requestedExt = extname(requestedPath);
|
let requestedExt = extname(requestedPath);
|
||||||
|
|
||||||
const filePath = join(baseDir, requestedPath ;
|
const filePath = join(baseDir, requestedPath);
|
||||||
|
|
||||||
stat(filePath, (err, stats) => {
|
stat(filePath, (err, stats) => {
|
||||||
if (err) { next(); return; }
|
if (err) { next(); return; }
|
||||||
|
|||||||
Reference in New Issue
Block a user