mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 12:47:13 +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;
|
||||
|
||||
fs.stat(filePath, (err, stats) => {
|
||||
if(err) {
|
||||
if(err || !stats.isFile()) {
|
||||
return self.fileNotFound(resp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue