mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-07 13:15:28 +02:00
Webserver Crashes accessing Directory #177
This commit is contained in:
parent
695e84e16f
commit
a1f55e5ad5
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ exports.getModule = class WebServerModule extends ServerModule {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|
||||||
fs.stat(filePath, (err, stats) => {
|
fs.stat(filePath, (err, stats) => {
|
||||||
if(err) {
|
if(err || !stats.isFile()) {
|
||||||
return self.fileNotFound(resp);
|
return self.fileNotFound(resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue