From 59c350e63ce5d61367cd3f7672bb20d861487d3b Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 11 Jan 2016 19:15:33 +0200 Subject: [PATCH] closes #4019 --- src/controllers/uploads.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/uploads.js b/src/controllers/uploads.js index da87ba9316..5c04d4d483 100644 --- a/src/controllers/uploads.js +++ b/src/controllers/uploads.js @@ -72,7 +72,7 @@ uploadsController.uploadThumb = function(req, res, next) { } if (uploadedFile.type.match(/image./)) { - var size = meta.config.topicThumbSize || 120; + var size = parseInt(meta.config.topicThumbSize, 10) || 120; image.resizeImage({ path: uploadedFile.path, extension: path.extname(uploadedFile.name),