Skip to content

Commit d19c02d

Browse files
authored
Merge pull request #16 from KIMB-technologies/histdownloadfix
Check name before passing to Filesystem
2 parents 03d8f61 + caf67b9 commit d19c02d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function handleRequest(request, response) {
135135
"Content-Type": "application/json",
136136
"Content-Disposition": 'attachment; filename="' + boardName + '.wbo"'
137137
};
138-
if (parts[2]) {
138+
if (parts.length > 2 && !isNaN( Date.parse( parts[2] ) ) ) {
139139
history_file += '.' + parts[2] + '.bak';
140140
}
141141
log("Downloading " + history_file);

0 commit comments

Comments
 (0)