Trim icon name. Filter private bookmarks if user is not authenticated

This commit is contained in:
Paweł Malak
2021-11-12 13:09:33 +01:00
parent d94a6cea5a
commit 6281994be8
5 changed files with 26 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ const createApp = asyncWrapper(async (req, res, next) => {
const { pinAppsByDefault } = await loadConfig();
let app;
let _body = { ...req.body };
let _body = { ...req.body, icon: req.body.icon.trim() };
if (req.file) {
_body.icon = req.file.filename;