From da59652c061a798282e18efad0b6d0afefa15465 Mon Sep 17 00:00:00 2001 From: FelixLC Date: Tue, 4 Dec 2018 11:53:36 +0100 Subject: [PATCH] Bug Fix: Special characters in password are not escaped https://github.com/sequelize/cli/issues/172 is stil open when special characters find their way in a password --- src/helpers/config-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/config-helper.js b/src/helpers/config-helper.js index fe21286f..10425c89 100644 --- a/src/helpers/config-helper.js +++ b/src/helpers/config-helper.js @@ -152,7 +152,7 @@ const api = { }, filteredUrl (uri, config) { - const regExp = new RegExp(':?' + (config.password || '') + '@'); + const regExp = new RegExp(':?' + _.escapeRegExp(config.password) + '@'); return uri.replace(regExp, ':*****@'); },