From a43a891974dc21920167180df0a062efeaa6208d Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Thu, 7 Jan 2021 14:50:45 +0100 Subject: avoid double quotes in bridge bot app password, it messes with the toml file Signed-off-by: Julien Veyssier --- lib/MatterbridgeManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/MatterbridgeManager.php b/lib/MatterbridgeManager.php index 9520c02a1..b41372305 100644 --- a/lib/MatterbridgeManager.php +++ b/lib/MatterbridgeManager.php @@ -348,8 +348,8 @@ class MatterbridgeManager { } private function generatePassword(): string { - // remove \ because it messes with Matterbridge toml file parsing - $symbols = str_replace('\\', '', ISecureRandom::CHAR_SYMBOLS); + // remove \ and " because it messes with Matterbridge toml file parsing + $symbols = str_replace(['"', '\\'], '', ISecureRandom::CHAR_SYMBOLS); // make sure we have at least one of all categories $upper = $this->random->generate(1, ISecureRandom::CHAR_UPPER); -- cgit v1.2.3