From bd7da591d7b9db961e7d2d5446fac88658bb1688 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 30 Nov 2019 14:03:53 +0100 Subject: [PATCH] Satinize conversations names --- src/controllers/ConversationsController.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/ConversationsController.ts b/src/controllers/ConversationsController.ts index 5626a6c..5889c72 100644 --- a/src/controllers/ConversationsController.ts +++ b/src/controllers/ConversationsController.ts @@ -2,6 +2,7 @@ import { RequestHandler } from "../entities/RequestHandler"; import { ConversationsHelper } from "../helpers/ConversationsHelper"; import { Conversation, BaseConversation } from "../entities/Conversation"; import { UserHelper } from "../helpers/UserHelper"; +import { removeHTMLNodes } from "../utils/StringUtils"; /** * Conversations controller @@ -33,7 +34,7 @@ export class ConversationsController { const conv : BaseConversation = { ownerID: h.getUserId(), - name: name == "false" ? "" : name, + name: name == "false" ? "" : removeHTMLNodes(name), following: h.postBool("follow"), members: members, }