Skip to content

Commit da59652

Browse files
authored
Bug Fix: Special characters in password are not escaped
sequelize#172 is stil open when special characters find their way in a password
1 parent 139f854 commit da59652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/config-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const api = {
152152
},
153153

154154
filteredUrl (uri, config) {
155-
const regExp = new RegExp(':?' + (config.password || '') + '@');
155+
const regExp = new RegExp(':?' + _.escapeRegExp(config.password) + '@');
156156
return uri.replace(regExp, ':*****@');
157157
},
158158

0 commit comments

Comments
 (0)