diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-01-08 13:26:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-08 13:26:51 +0300 |
commit | 250901e706d067fc07305d098cf627fe79503455 (patch) | |
tree | 346c454b22910a32485123a1f35fdb80c043896c | |
parent | 94d2f2952007c58765bf21173f226c4fa909a151 (diff) | |
parent | 92d3198f9c91b5c4ce4f83342218fcfa81a2a7da (diff) |
Merge pull request #4917 from nextcloud/backport/4905/stable20
[stable20] Avoid double quotes in bridge bot app password
-rw-r--r-- | lib/MatterbridgeManager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MatterbridgeManager.php b/lib/MatterbridgeManager.php index 2e65c1cf6..3052c1621 100644 --- a/lib/MatterbridgeManager.php +++ b/lib/MatterbridgeManager.php @@ -336,8 +336,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); |