File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -217,17 +217,17 @@ public static function parseDsn($dsn)
217
217
parse_str ($ parts ['query ' ], $ options );
218
218
}
219
219
220
- //check 'password-hashing ' parameter and extracting password based on encoding
221
- if ($ options && isset ($ options ['password-hashing ' ]) && $ options ['password-hashing ' ] === 'u ' ){
220
+ //check 'password-encoding ' parameter and extracting password based on encoding
221
+ if ($ options && isset ($ options ['password-encoding ' ]) && $ options ['password-encoding ' ] === 'u ' ){
222
222
//extracting urlencoded password
223
223
$ pass = isset ($ parts ['pass ' ]) ? urldecode ($ parts ['pass ' ]) : false ;
224
224
}
225
- else if ($ options && isset ($ options ['password-hashing ' ]) && $ options ['password-hashing ' ] === 'b ' ){
225
+ else if ($ options && isset ($ options ['password-encoding ' ]) && $ options ['password-encoding ' ] === 'b ' ){
226
226
//extracting base64 encoded password
227
227
$ pass = isset ($ parts ['pass ' ]) ? base64_decode ($ parts ['pass ' ]) : false ;
228
228
}
229
229
else {
230
- //extracting pass directly since 'password-hashing ' parameter is not present
230
+ //extracting pass directly since 'password-encoding ' parameter is not present
231
231
$ pass = isset ($ parts ['pass ' ]) ? $ parts ['pass ' ] : false ;
232
232
}
233
233
You can’t perform that action at this time.
0 commit comments