From c8c3c9aa8d239800c0b4712cd8a384160ec7d215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Fri, 5 May 2017 12:48:41 +0200 Subject: [PATCH] Escape comma in password Fixes #937 --- js/connection.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/connection.js b/js/connection.js index f5f03b5..25ebcf9 100644 --- a/js/connection.js +++ b/js/connection.js @@ -35,6 +35,8 @@ weechat.factory('connection', // Helper methods for initialization commands var _initializeConnection = function(passwd) { + // Escape comma in password (#937) + passwd = passwd.replace(',', '\\,'); // This is not the proper way to do this. // WeeChat does not send a confirmation for the init. // Until it does, We need to "assume" that formatInit