From eb34dc6cc24e5946d6b36d99dd8710a0c4a673c3 Mon Sep 17 00:00:00 2001 From: Alexandre Gagner Date: Thu, 12 Aug 2021 00:58:51 +0200 Subject: [PATCH] Update notification.js Fix remove non ascii char from msg --- server/notification.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/notification.js b/server/notification.js index 1f13ad496..56838513e 100644 --- a/server/notification.js +++ b/server/notification.js @@ -208,7 +208,8 @@ class Notification { "phone_number": notification.octopushPhoneNumber } ], - "text": msg, + //octopush not supporting non ascii char + "text": msg.replace(/[^\x00-\x7F]/g, ""), "type": notification.octopushSMSType, "purpose": "alert", "sender": notification.octopushSenderName