Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJulien Veyssier <eneiluj@posteo.net>2021-01-07 16:50:45 +0300
committerJulien Veyssier <eneiluj@posteo.net>2021-01-07 17:10:41 +0300
commita43a891974dc21920167180df0a062efeaa6208d (patch)
treefbf34b47d8ab9500d16d84eb335c3c2e0382b278 /lib
parent87868e04acf8eb088060678788fbee1a9de96cc6 (diff)
avoid double quotes in bridge bot app password, it messes with the toml file
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/MatterbridgeManager.php4
1 files changed, 2 insertions, 2 deletions
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);