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
#172 is stil open when special characters find their way in a password
  • Loading branch information
FelixLC authored Dec 4, 2018
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
Expand Up @@ -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, ':*****@');
},

Expand Down

0 comments on commit da59652

Please sign in to comment.