Skip to content

Commit cd57b40

Browse files
FelixLCSimonSchick
authored andcommitted
fix: special characters in password are not escaped (sequelize#722)
1 parent 0828c1f commit cd57b40

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
@@ -155,7 +155,7 @@ const api = {
155155
},
156156

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

0 commit comments

Comments
 (0)