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