From a2608c319a8c31f9b173dbb5d00221d3ad96739b Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Sat, 23 Jun 2018 21:47:22 +0200 Subject: Fix possible error if HackMD is started with wrong workdir In https://github.com/hackmdio/hackmd/issues/834 is described how starting HackMD crashes when using the wrong working dir. This is caused by a relative path in our upload routine. This change should fix it and prevent future crashes. Signed-off-by: Sheogorath --- lib/config/default.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/config/default.js') diff --git a/lib/config/default.js b/lib/config/default.js index 1b124b3e..f88c17b3 100644 --- a/lib/config/default.js +++ b/lib/config/default.js @@ -45,6 +45,7 @@ module.exports = { errorPath: './public/views/error.ejs', prettyPath: './public/views/pretty.ejs', slidePath: './public/views/slide.ejs', + uploadsPath: './public/uploads', // session sessionName: 'connect.sid', sessionSecret: 'secret', -- cgit v1.2.3