Skip to content

Commit

Permalink
Bug Fix: Special characters in password are not escaped
Browse files Browse the repository at this point in the history
sequelize#172 is stil open when special characters find their way in a password
FelixLC authored Dec 4, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 139f854 commit da59652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/config-helper.js
Original file line number Diff line number Diff line change
@@ -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, ':*****@');
},

0 comments on commit da59652

Please sign in to comment.