From 2841f4c9dcd99e5a29133481442865c1e107ddc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Dahlgren?= Date: Sat, 5 Apr 2014 19:37:53 +0000 Subject: [PATCH] Make sure mission names are lower case --- routes/missions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/missions.js b/routes/missions.js index 87216c9..ec0e5b5 100644 --- a/routes/missions.js +++ b/routes/missions.js @@ -20,7 +20,7 @@ exports.create = function(req, res){ var missionFile = req.files.mission; fs.readFile(missionFile.path, function (err, data) { - var newPath = config.path + '/mpmissions/' + missionFile.name; + var newPath = config.path + '/mpmissions/' + missionFile.name.toLowerCase(); fs.writeFile(newPath, data, function (err) { res.json(missionFile); });