Skip to content

Commit

Permalink
fix: special characters in password are not escaped (sequelize#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixLC authored and SimonSchick committed May 5, 2019
1 parent 0828c1f commit cd57b40
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
Expand Up @@ -155,7 +155,7 @@ const api = {
},

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

Expand Down

0 comments on commit cd57b40

Please sign in to comment.