Escape comma in password

Fixes #937
This commit is contained in:
Lorenz Hübschle-Schneider 2017-05-05 12:48:41 +02:00
parent eaffb17c5a
commit c8c3c9aa8d
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ weechat.factory('connection',
// Helper methods for initialization commands // Helper methods for initialization commands
var _initializeConnection = function(passwd) { var _initializeConnection = function(passwd) {
// Escape comma in password (#937)
passwd = passwd.replace(',', '\\,');
// This is not the proper way to do this. // This is not the proper way to do this.
// WeeChat does not send a confirmation for the init. // WeeChat does not send a confirmation for the init.
// Until it does, We need to "assume" that formatInit // Until it does, We need to "assume" that formatInit